Streaming live at 10am (PST)

Persistent trouble with email form button tracking


#1

Hi Webflow team,

I have implemented the tracking features/solutions described in other posts on Webflow and other forums and I am still having trouble seeing one of the button link I am trying to track in Google Analytics no matter what I try. I've pasted the script from Google Universal Analytics in the header section of Custom Code and added the custom attributes below for each link though the one below tied to an email form submit button which routes to an internal page (i.e. domain.com/sign-up-successful) isn't registering in Google Analytics. Could you help me understand if there is something else I am missing here?


#2

Here is the onClick attribute I've assigned to the email form submit button (in custom attributes section)

Name: onClick
Value: gaq.push(['trackEvent', 'Click', 'Submit', 'Interest']);


#3

Hi @diluvium, one thing you might try, is to use an embed widget on the success page, and paste in your GA tracking code there, so that when the success page loads, the tracking event is fired.


#4

Thanks Dave. I've tried this (included embed widgets with my GA code on both main and success page) without any luck. The formatting of the code seems right and i'm following all of the right steps so I'm not sure what I could be doing wrong. Do you think using classic analytics (if it is even possible to change the account type) would help?


#5

Hi @diluvium, If you could please send me a read-only link to your site, I am happy to take a look.

More information about read-only links:

http://help.webflow.com/general/guidelines#how-do-i-share-my-sites-read-only-link

Cheers, Dave


#6

Thansk Dave, here is my read only link:

https://webflow.com/design/corerelief?preview=44f19d96ab942601bf428e091230d6c5


#7

Ok thanks @diluvium. You may get some form submissions from me while I test. Once I have some info I will respond back smile Cheers, Dave


#8

Sounds good, thanks again Dave


#9

Hi @diluvium, is it possible for you to publish your webflow site, so that I can look at it in published mode?


#10

I've published the site you should be able to see it at www.corerelief.me


#11

Hi @diluvium, thanks for your patience. Could you please try to remove the Google Analytics number that you have entered in the Analytics tab of site settings, and then republish your site and let me know? I want to then test. It appears that when you have the custom universal analytics code running, and the built in analytics field populated, google does not know which code to read. Try that and then let me know once republished, and I can run a new tag verifier. Cheers, Dave smile


#12

Just removed the UA number from the analytics section and republished. I see some tracking results have shown up but still no data showing about the email form submit button. Thanks for your help!


#13

Hi @diluvium, thanks for your update. Did you also check that putting the tracking code in an embed widget in your success page works or not? We do not natively support putting those analytics triggered by the button click, so probably some additional custom code review is needed there.

I would try to put your entire tracking code snippet in an embed object on the success page, and then check if that fires when the form is redirected to the success page.


#14

Yes I did put the embed widget with the google UA code in the success and home pages a couple of days ago.


#15