dollenmetmedia
Forum Replies Created
-
Ok. So..it stopped working for me. Nevermind the post above. #fail
Hi TexasTrev,
Here’s what I did just now with a new website I wanted to track send forms. Note: I’m using Universal Analytics. I didn’t need the {{event}} rule anymore to track form submittions.
1. I created a form with the following additional settings:
on_sent_ok: “ga(‘send’, ‘event’, ‘yourcategory’, ‘youraction’, ‘yourlabel’);”In my case this was:
on_sent_ok: “ga(‘send’, ‘event’, ‘forms’, ‘send’, ‘invoices’);”2. I added this event as a goal in my Universal Analytics account, like this:
Category (equal to) : forms
Action (equal to): send
Label (equal to): invoicesYou can leave the value field empty.
3. Add the event tracking to your Google Tag Manager
This one might be a bit tricky. Hope I can explain it to you correctly. Note: I’m using the new interface for GTM.Go to the container for your Tag. You might have set up the standard Universal Analytics tag already, if not, do this first. Then, add a new tag with the following settings:
-
Tag: Google Analytics
Type Tag: Universal
Tag Activation: All pages (you could specify this to a single page if you wanted)Now comes the Tag Configuration. Note to use the exact same fields as used in the Goals in Google Analytics.
-
Tag name: Send forms for invoices
Tracking-ID: Your tracking-ID.
Category: forms
Action: send
Label: invoicesSave your tag.
4. Test your container before you publish and check if the tag is fired.
This is easy. Set your container to ‘test’ and check your website (while leaving the GTM screen open). You should see a pop-up with all the fired tags. If the event tracking is fired, you can now publish your container.5. Test some more: the goals in Analytics
If your contact form is sent, you should be able to see it in your Realtime Conversion. Go to Google Analytics > Realtime > Conversions. Note: make sure you don’t have any IP filters on or anything like that. It becomes frustrating when you find out after a day you couldn’t tracking realtime conversions, because you filtered yourself out.Thats it! Hope it worked for you!
Hi Mark,
Just letting you know your post was really helpful! I used your steps to make it work, but i had to add the following code to the Additional Configuration in Contact Form 7.
on_sent_ok: “ga(‘send’, ‘event’, ‘category’, ‘action’);”
Which is a bit different from yours.
Thanks again!