Streaming live at 10am (PST)

_gaq is not defined


#1

Hi Folks,

Injected a custom script bit as outlined in option 1 on https://help.webflow.com/article/integrate-google-analytics-and-mixpanel-into-your-website. When object is clicked, the event is fired accordingly though “Uncaught ReferenceError: _gaq is not defined” is returned. Analytics.js loads on the page and pageview event is fired prior to this successfully. Help, anyone!

Here are the resources:

1a - https://preview.webflow.com/preview/progets-io?preview=ecc0d5e12af3f87b77f7702ffc1c09b8
1b - http://progets-io.webflow.io
2 - https://developers.google.com/analytics/devguides/collection/analyticsjs/
3 - screenshots attached


4 - Steps:
-> land on the page
-> click on any button, example "Sign up for free"
Expected -> event tracking request is made to GA
Actual -> uncaught ReferenceError is thrown because _aq is not defined

Thank you,
Nik


#2

Welcome to the Webflow forum!

Could you please edit and provide ALL the necessary details in your post so we can take a look at your site/issue?

In future if you want faster replies and more accurate answers, I suggest including all the details listed in the link above before someone has to ask.

Hope to hear from you soon. Thanks!


#3

@samliew information added, thanks for pointing out. I hope this helps :slight_smile:


#4

Seems like _gaq is for Google Analytics Classic, which is now discontinued by Google.

Webflow has switched to Google Universal Analytics a while back, so I see why _gaq is no longer possible.


#5

Great, thanks for clarifying. What are the integration steps for link tracking with GUA? Would be helpful to have this link updated: https://university.webflow.com/article/integrate-google-analytics-and-mixpanel-into-your-website

Thank you,
Nick


#6

See this https://stackoverflow.com/a/18701605/584192 and https://stackoverflow.com/a/36314290/584192

Please submit your feedback at the bottom of the article.


#7

Thanks for your help @samliew :slight_smile: