Much the same as this user, I've got a WordPress website with multiple forms often on the same page. My forms are created using Contact Form 7.
For example, when the 'Request a Call' form is completed, a data layer is sent using:
on_sent_ok: "dataLayer.push({'event':'formSubmit-RequestACall'});"
In GTM, I have a custom trigger set up as follows:
Here are the Tag settings:
Meanwhile, over in GA, I've set up the following Goal:
However, if I submit the request a call form and look at Real-Time goal completions in GA, nothing is showing. Is anyone able to advise where I'm going wrong please?
Thanks in advance.
Update: My Preview summary says the tag isn't firing. There's one tag firing, which is the one I'm using to measure overall traffic.
The DataLayer feedback is as follows:
Crikey! I've finally got to grips with it. In the hope of saving someone else the best part of a day, here are my settings, which work for me.
dataLayer.push (under 'Additional Settings' in Contact Form 7)
on_sent_ok: "dataLayer.push({'event':'formSubmit-RequestACall'});"
Google Tag Manager - Trigger
Google Tag Manager - Tag
Google Analytics - Goal
The verification as you can see in the last photo says it would expect 0% conversion based on last 7 days data. This is despite the goal registering in the Real-Time (last 30 mins) data, so I expect it needs 24 hours to register the goal properly.
No variable settings necessary. I now just need to repeat for the other forms, changing the event name for each (i.e. instead of formSubmit-RequestACall) to something unique.
Good luck!
Related
I want to see which pages a visitor went through, when filling in a contact form. To track the submitting of the form, I setup google tag manager with google analytics.
So now when submitted I see an event "FormSubmitted" in Analytics.
Only now I can't get to figure out, how I can check the behavior flow of only the user which submitted the form.
Is anyone known with this, and knows how to filter that specific usertype out? Tried some filters in the behavior flow section, but couldn't get the right one.
Hope to get a solution here!
Only now I can't get to figure out, how I can check the behavior flow of only the user which submitted the form.
Create a segment with conditions for example "Sessions includes event category = ...".
And apply it on report "Behavior Flow".
Ussually to track steps of form filling it's better to set it before. You need to set sending virtual pages in GTM for each step you want and then create goal in GA type Destination and add steps there. After successful setup you'll see funnel in report 'Funnel Visualization'.
On my home page (/) I have a form embedded on it. When you complete it and press submit, it takes you to a thank you page.
I also have another form on another page in the site located at (/sales) When you complete this form I just have it send you to the same thank you page.
If I just create a goal that tracks when the destination page is "thank you" then there is no way to track which form the user came from.
Can I create a Funnel (that is Required) (step 1 must be be / or /sales) would that act as a prerequisite to complete the goal? In other words, will that only track my sales form if the user actually goes to /sales, then completes the form?
I fear it will not - that the user initially goes to /, then /sales, then complete the form (ends up at 'thank you') and this would count as both goals since the funnel completed for both in theory.
Is this just not the right way to go about it, and I need to use Google Tag Manager form triggers for this? Or is there an analytics solution for this.
Thanks in advance for any insight.
The funnels only affect visualization, not goal conversions, so that will not help you. If you want a conversion only with a certain referrer you need to solve that in code, e.g. by checking the referring page in your tracking code and send an event only if it matches the desired values.
I had a question about Google Tag Manager. (I also felt bad for having the IT guy fix my mistakes on my simple click tag)
I wanted to track when a user enters a specific url when they click a link button on the homepage.
This is what it looks like
Image
This is my idea on what the Tag and Trigger should look like
Image
But I'm worried about having the trigger be fired when there is another page in the funnel
Also if the only way to do this is in the goal feature of GA that is good to know also. (I currently don't have the permissions here)
Thanks for responses
While it is difficult to achieve exactly what you're describing (it would involve storing data in cookies and then using these cookies to conditionally fire tags), there is a better way to achieve what I assume is your ultimate objective: an analysis of the shopping funnel.
Specifically, the Google Analytics enhanced ecommerce module has a dedicated report (the Conversions > Ecommerce > Shopping Behavior report) that shows you exactly this. It shows you the number of sessions for each stage of your shopping experience (product view -> add to cart -> checkout -> purchase) along with drop-off rates and volumes between each of these steps.
It is a little bit more involved to implement enhanced ecommerce but the final result is definitely worth it for an ecommerce business. Instructions for implementation of enhanced ecommerce (using Google Tag Manager) can be found here.
GTM is hit based without any notion of persistence. So by default this will not work.
You would need a custom HTML tag with a javascript function that sets a cookie, or writes a value to localstorage, when the button is clicked.
Then on your destination page you can check if the cookie exists and fire the tag accordingly.
I don't think the goal feature in GA can do that, either. A goal is registered when you hit a destination URL or event, you cannot specify conditions other than the destination.
I've researched several sources to try and understand how to set up this up, but the documents found seem incorrect our out of date. I'm trying to achieve the following.
When someone submits on my 'contact us' form, I'd like to track that as a conversion in AdWords.
I've completed the following:
- Set up the Conversion in AdWords
- Added the Google Tag Manager code to Squarespace and validated it works
I'm struggling to understand what needs to happen next, I believe it is something like:
- Create a GTM AdWords tag and add in AdWords Conversion ID and Conversion Label
Set the trigger as a form submission
Do I then need to add some form of code into Squarespace on the contact us page to pick up the trigger? this is the part I'm stuck on.
Any guides that explain this in full would be great.
Please help me understand this. I have a client for whom we created a sweepstakes "mini site". Traffic was generated through banner ads, eBlasts, and newsletters. For the banner ads, I created custom urls, i.e. www.somewhere.com?utm_source=yahoo?utm_campaign=abc to track the traffic to the landing page per vendor/banner. this works just fine.
The entrant visits the page, signs up for the sweepstakes, has as double opt in email process for verification. All of my entering traffic to the landing page is tracking fine, and is properly broken down by utm_source and utm_campaign.
Some of the vendors had me place tracking pixels on the confirmation page for conversion statistics. The only info I have placed for internal tracking on the confirmation page is the GA tracking code.
I have been told to create tracking pixels to track the individual vendor conversions. Is this possible without the originating pixel data from the vendor? I am new to tracking pixels, but my understanding is that I need some information from the vendor in order to write the code for the pixel. Am I wrong?
I can't understand how we can place a tracking pixel on our end without at least campaign name or data from the vendor's tracking pixel that they placed on the page containing our banner ads.
What am I missing here? How can I actually separate the conversion traffic from the different sources when everyone receives the same double-opt-in email?
Please ask me to clarify if I am not being clear. Thanks in advance for reading my question.
There are two things you are trying to track here. One is Campaigns: Campaigns are how you measure the effectiveness of techniques to bring users to your site.
The other thing you are tracking is Events - this is what users are doing once they arrive at your site. If you want to track individual vendor conversions, you should add an onclick handler to either the submit button, or link that you are calling a "conversion"
For example:
Your link here
If you are adding the push to a form submit, you might want to have that push happen on the pageload of the success page, rather than the onClick of the submit (otherwise it will track the event, and it might not have actually happened due to form validation errors for example)