Hey guys,
Our client uses Event Tracking in Google Analytics to capture certain link/button clicks on their website.
E.g. clicking “Submit” on a Contact Form or clicking “Subscribe” on a Newsletter subscription form.
We have tested the Event Tracking on all of their forms and it is failing to be capture the data into their Analytics account.
Default setup:
onclick=”ga(‘send’, ‘event’, ‘Category’, ‘Action’, ‘Label’, ‘Value’);”
I have tried multiple versions like:
<input type="submit" onclick="ga('send', 'event', 'Enquiry', 'Submit', 'Contact Form Submission', '');">
<input type="submit" onclick="ga('send', 'event', 'Enquiry', 'Submit', 'Contact Form Submission');">
<input type="submit" onclick="ga('send', 'event', 'Enquiry', 'Submit', 'Contact Form Submission', '');">
<input type="submit" onclick="ga('send', 'event', [Enquiry], [Submit], [Contact Form Submission]);">
It seems no matter what we do it is failing to capture the event, we even tested a basic link:
<a href="/grants" onclick="ga('send', 'event', 'Grants', 'Click', 'Clicking Grants link');">Click</a>
We have triple checked to make sure the same Analytics account is being used and that it matches up with the same UA-Tracking code we’ve added in Settings -> Analytics.
They can see their Analytics stats as well on the Dashboard when you log into the Treepl admin area. However when we setup an Event and trigger it, and then log into the Google Analytics account and head over to Behaviour -> Events -> Overview (with today’s date selected) - nothing is being shown, no data is coming over.
We even tried scrapping Analytics from Treepl’s Settings -> Analytics and just pasting the snippet from Google Analytics into the tag and tested the Event again and same again, no data is hitting the Analytics account.
Is this a Treepl issue? Has anyone successfully tracked an Event on Treepl?