Skip to main content
All CollectionsUsing Lasso With Other Services
How to Tell if Google Analytics Click Tracking Is Working
How to Tell if Google Analytics Click Tracking Is Working

Troubleshooting steps to check if Lasso and Google Analytics are tracking clicks.

Caitlin Ward avatar
Written by Caitlin Ward
Updated over a week ago

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.

Using Page Builders or Custom Post Types

Before we get started looking at Google Analytics, it's important to make sure that Lasso is setup to work with any custom post types.

Those could be CPTs you've created yourself, or are 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-XXXXXXXXXX

  • G-KNQBQ172XY

It's typically always starting with G- followed by 10 digits (a mixture of letters or numbers).

If, for some reason, you're still using Universal Analytics (old GA3) then it may look like UA-151782091 or UA-173871192-2 but you should switch to a GA4 Measurement ID instead by now!

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 checked for the obvious, we can confirm that the click-tracking script is being added in our pages.

Navigate to a post containing a Lasso Link or Lasso Display.

Then we want to 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:

Lasso script for Universal Analytics will look like this:

Check JavaScript Console For "Lasso GA is ready"

Another step to take is to make sure that when your page loads, the Lasso JavaScript is running and being noted in the console when it fires.

To open console:

  • Chrome: right-click and select "Inspect", then navigate to the Console tab and reload the page

  • Safari: navigate from the Sources tab (from step #2) to the Console tab and reload the page

Confirm that you see "Lasso GA is ready!"

Google Analytics 4 will look like this:

Universal Analytics will look like this:

If you don't see "Lasso GA is ready!":

  • Clear your console

  • Reload/refresh the page

To clear your console on Chrome, hit this button:

To clear your console on Safari, hit this button:

Confirm Lasso Click Data Sent to Google Analytics

Click any of your Lasso Links or Displays with your console still open.

Google Analytics 4 will show "Lasso GA4 send" if the click goes through:

Universal Analytics will show three rows of text:

  • Display Box (or Link Click)

  • Lasso GA send

  • lasso ga

Confirm Lasso Click Data Received by Google Analytics

Time to confirm that the click data is being received by Google Analytics!

Google Analytics 4

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

Universal Analytics

Navigate to Reports > Realtime > Events > "Events (Last 30 minutes)" tab.

Since you tested the click in step #4, "Events" should be a minimum of 1.

The name under "Event Category" will be the name of the Lasso Link in your Dashboard.

Now you know how Lasso is sending click data to Google Analytics!

If you still need help, reach out to us via the support bubble icon or by email at [email protected]

Did this answer your question?