SweepWidget GA4 Integration


Plan required: Pro or higher.

Google Analytics 4 (GA4) gives you insights into how people use your giveaways. This guide shows you how to connect GA4 to SweepWidget.

What You’ll Track with GA4

Once integrated, GA4 tracks:

  • Page views – every time someone views your giveaway
  • Giveaway entries – when entrants submit the entry form, including blocked attempts and the reason
  • Entry method completions – each bonus action entrants complete
  • Widget interactions – refreshes, logouts and errors

Setting Up GA4 Integration

Step 1: Open the Google Analytics 4 settings

In your SweepWidget dashboard, click API Integrations in the left menu. Then click Google Analytics 4 (GA4).

Step 2: Enter Your Measurement ID

In the Measurement ID field, enter your GA4 Measurement ID (it starts with “G-“, like G-ABC123XYZ).

Click Save Changes.

Important: only enter your Measurement ID (G-XXXXXXXXXX), not the entire tracking code script.

Finding Your GA4 Measurement ID

Step 1: Access Google Analytics

Go to analytics.google.com and sign in with your Google account.

Step 2: Select or Create a GA4 Property

If you already have a GA4 property, select it from the property dropdown. If not, click Admin in the bottom left corner and then Create Property.

Step 3: Navigate to Data Streams

  • Click Admin (gear icon in bottom left)
  • Under the Property column, click Data Streams
  • Select your web data stream (or create one)

Step 4: Copy Your Measurement ID

At the top right of the stream details page you’ll see your Measurement ID (format: G-XXXXXXXXXX). Copy it and paste it into the SweepWidget integration field.

Viewing Your Results in GA4

Real-Time Reporting

  • In GA4, go to Reports > Realtime
  • You’ll see users currently on your giveaway and events as they fire

Event Reporting

  • Go to Reports > Engagement > Events
  • Click any event name to see detailed metrics

Note: real-time events appear immediately, but standard reports can take 24-48 hours to fill in.

Events Tracked by SweepWidget

Event Name When It Fires event_category event_label examples
page_view Giveaway page loads – –
SweepWidget enter giveaway Entrant submits the entry form Enter giveaway “Enter giveaway success”, “Enter giveaway error: duplicate IP address”
SweepWidget insert entry Entrant completes a bonus entry method Insert entry “Insert entry: visit_a_page”, “Insert entry error: duplicate”
SweepWidget login error Entry blocked by a security check Insert entry “Insert entry error: VPN detected”
SweepWidget reload widget Widget is refreshed Reload widget “Reload widget success”
SweepWidget logout Entrant logs out Logout “Logout success”
SweepWidget duplicate wallet address Crypto wallet address already used Duplicate crypto wallet address
SweepWidget invalid phone number Invalid phone number Insert entry “Insert entry error: invalid phone number”

There is no separate login-success event.

Event Parameters

Each SweepWidget event includes:

  • event_category – the category of the action (see the table)
  • event_label – details about the action, including success or the error reason

The text after “Insert entry: ” is SweepWidget’s internal name for the entry method (for example visit_a_page).

Example Event

When an entrant completes a Visit a Page entry method, GA4 receives:

  • Event: SweepWidget insert entry
  • event_category: Insert entry
  • event_label: Insert entry: visit_a_page

Embedded giveaways

On an embedded giveaway, GA4 runs inside the giveaway iframe, which is served from sweepwidget.com. Page views and events show the sweepwidget.com/c/… address as the page location, not your website page.

GA4 vs Universal Analytics

Feature Universal Analytics (Old) Google Analytics 4 (New)
ID Format UA-XXXXXXXX-X G-XXXXXXXXXX
Status Stopped processing July 1, 2023 Current version
Event Location Behavior > Events > Overview Reports > Engagement > Events
Tracking Method Session-based Event-based with user journey tracking

Important: Universal Analytics is no longer supported. You must use Google Analytics 4.

Troubleshooting

Events Not Appearing?

  • Wait 24-48 hours: standard reports take time. Check Realtime reports for immediate data.
  • Verify Measurement ID: make sure you entered a G-XXXXXXXXXX ID (not a UA- ID) and clicked Save Changes.
  • Check the security setting: if Remove SweepWidget Google Analytics tracking is ticked on the giveaway’s Security tab, SweepWidget sends no events to your GA4 (page views still arrive). Untick it.
  • Check browser extensions: ad blockers and privacy extensions can block tracking. Test in an incognito window.
  • Test your giveaway: visit your live giveaway, complete an action, then check GA4 Realtime within a few minutes.

Using a UA- ID Instead of G-?

Universal Analytics IDs (UA-XXXXXXXX-X) no longer work. Create a GA4 property and use a Measurement ID starting with “G-“.

Best Practices

  • Create a dedicated property: consider a separate GA4 property for your giveaways.
  • Set up key events: mark SweepWidget enter giveaway as a key event, filtered on event_label Enter giveaway success, so blocked attempts don’t count.
  • Use event_label to see which entry methods perform best.
  • Check regularly and adjust your giveaways.

Need Help?

  • Contact SweepWidget support through the Contact Us page in your dashboard
  • Visit Google’s GA4 Setup Guide for help creating your GA4 property