Overview
Are you using our Google Analytics (GA) integration to track clicks, but you're not sure if it's working correctly?
Follow these steps to see if your click tracking data is being sent to GA.
A Note on Page Builders or Custom Post Types
Before we look at Google Analytics, it's important to make sure that Lasso is set up to work with any custom post types (CPTs).
Those could be CPTs you've created yourself, or they could be created from page builders like Elementor, Thrive, etc.
Let's quickly cover how to make sure Lasso is working on all your desired post types.
Go to Lasso > Settings and the General tab:
On the right hand side you'll find a field for Custom Post Types selection, where you can pick any additional post types you commonly use for adding affiliate links or Lasso displays:
Verify Your Google Analytics 4 Measurement ID
The next troubleshooting step is to make sure that you have added the correct Measurement ID from GA4 into Lasso.
The format for a Google Analytics 4 (GA4) Measurement ID looks like these examples:
G-XXXXXXXXXXG-KNQBQ172XY
It's typically always starting with G- followed by 10 digits (a mixture of letters or numbers).
Measurement ID is not to be confused with Tracking ID or Stream ID, and is found here:
Note: For full details on how to find the right ID, make sure to read our full help article on How to Connect Google Analytics for Click Tracking
On the Lasso Settings screen, you can enter your Measurement ID under Google Analytics like this:
Ensure Click Tracking is Enabled
The next step is to ensure that the Click Tracking toggle is turned ON under Google Analytics settings:
Verify Lasso Code Inside Source Code
Now that we've confirmed the settings, we can confirm that the click-tracking script is being added in our pages.
First, navigate to a post containing a Lasso Link or Lasso Display.
Then, open up the source code for the page:
Chrome: go to View > Developer > View Source
Safari: go to Develop > Show Web Inspector, then navigate to the Sources tab.
Command+F (or CTRL+F on Windows) and search for your measurement ID (e.g. G-KNQBQ172XY)
Lasso script for Google Analytics 4 will look like this:
Check Connection
1. Right-click on any page on your site, then choose Inspect to open DevTools.
2. Navigate to the Network tab, then choose Fetch/XHR.
3. Under the Name column, locate analytics. Then, verify it shows a Status of 200.
4. Click on analytics, then choose the Response tab. Confirm that you see "message":"Success!" there.
If you see both the 200 status and the "Success!" message, Lasso is officially connected to Google Analytics. 🎉
Confirm Lasso Click Data Received by Google Analytics
Time to confirm that the click data is being received by Google Analytics!
Navigate to Reports > Realtime > "Event count by Event name".
After each Lasso click, the "Link Click" event number will increase.
Since you tested the click in step #4, the Event Count for "Link Click" should be a minimum of 1:
For added reassurance, click the "Link Click" option highlighted in the above image. There are three key indicators to see Lasso data in GA:
lasso_href: The URL of the Lasso Link
lasso_text: The anchor text that was clicked
lasso_title: The title of the link in the Lasso Dashboard
Need Help?
If you still need help, reach out to us via the support bubble icon or by email at [email protected].









