I have defined a trigger having event name as "gtmEvent" and a tag "AccountCreated". When I click on a button ("createAccount") it goes to next page. But tag is not fired and also in summary the event is not listed but when i check google analytics through console i found that tag is there in event name.
Is it when you click on page and after clicking you stayed at same page only then the event listed on summary otherwise it will lost. ??
Related
The website has standard AddtoCart button but after clicking, user can add more units to their basket.
Problem is, AddtoCart event in dataLayer fires only once on the first clicking the button.
How can I delay firing the tag after this event so that I send final hit to GA when user is done adding units?
URL: https://shop.iglobus.cz/cz/rajata-cherry-na-stonku-strabena-250-g/8594192220046
This button:
becomes this:
Thank you.
screenshot of red crosses
I'm new to GTM and at the beginning of setting up my first click event using a UA tag and a variable containing my tracking ID. That part fires ok. I created a simple Just Links trigger set to All Link Clicks. But when I debug with preview, I get 'Link Click' ok in the left summary, but it says tags not fired - my GA tag and inside the Firing Triggers haven't worked. There's red crosses against All Pages and the gtm filters. I've triple checked all my settings against tutorials I've followed but have no idea when the Firing Triggers have not worked?
existing tag
existing trigger
new tag
preview firing
There is an error from your trigger.
Your current trigger is pageView in all page
So you need to create an trigger For Just Link
Step1 : Change type to Just Links
Step2 : Give an appropriate name for this trigger.
Step3 : Save and change your tag's trigger to this one.
I believe this will work !
Just remember :
Tag is what you are sending.
Trigger is when you are sending.
Add :
From the comment. I guess the problem is we need to create another tag for tracking Link Click.
Since you original tag is for tracking Page View. We need to have 2 tags for your scenario.
In the event tracking. There are 3 level :
Category > Action > Label
You can come up with your own structure on this.
The screenshot is just providing a general one.
Especially for the label, You can decide whether using {{click text}} or {{click url}}
I'm running into an issue for a form submission event firing too often (200x). The trigger for the event is created from the GTM standard Trigger Type of "Form Submission" where we're checking validation and have specified the conditions to be only on the Page URL where the form exists. We've tested it in GTM preview mode and seeing that the event fires.
Update 1/28-
The form is on a pop-up through our homepage (https://mybrightwheel.com) after the user clicks on "Request a Demo" (so the event fire should not happen on this initial button click). The event fire should occur after they get into the demo request form and complete a successful form submit. And below that is a shot of the trigger. Any help here is appreciated.
That trigger hasn't specified which button it's firing on. You have 2 buttons in that screenshot, it's recording both. You need to tell it to fire on one button or the other by specifying link text or link url (i.e. where the user ends up on clicking the link)
I have a page with search button, and an tag event that should be fired when the button is pressed.
My question is if the loading of the new page (that should be displayed when the 'search' button is pressed) will be delayed until after the code in the tag event is finished, or is it done asynchronously somehow
default loading of the new page will be delayed until after the code in the tag event is finished. Tags are usually fired as a listener to click event and they're executed before the default action. However, if your search button has some custom listener that redirects to a new page and overrides the default action then tag may not fire correctly.
When I create a tag to listen for form submissions using Google Tag Manager.
For my ajax submitted form which does not go to a new page, the submission of a form does not fire the gtm.formSubmit event into the data layer.
What should I do instead?
I need a "codeless" solution to detect form submission and to capture the submitted values.
I ran into another potential reason for this as well and thought I'd drop it in here.
In the Form Submit Listener, you need to have Check Validation unticked for AJAX forms (if the Submit button is blocked from doing a normal submit, as you would do with AJAX forms, this option blocks the listener from firing the correct event).
I have an ajax submitted form and the formSubmit click listener and event tags are working for me.
You might be doing this already, but just to double check;
You are adding 2 tags - the formSubmit listener and the Analytics event tag for that event?
Are you setting up the filters correctly (i.e. including event equals gtm.formSubmit, and the appropriate page?)
If it still isn't working, another suggestion is to use a simple click listener, then filter for both the page the form is on and the id of the submit button.
Here is how Google recommends doing it.
Add a basic page tracking tag (i.e. Tag Type of Google Analytics or Universal Analytics; Track Type of Page View) if you don't already have one. This tag must fire on all pages.
Add a tag of type Event Listener > Form Submit Listener. You can name it “Form Submit Listener”. Add a single firing rule of "All pages", or, for the specific page(s) on which you want to listen for form submissions.
Add a rule (named "Form Submit" for example) with the following condition:
{{event}} equals gtm.formSubmit
Add an Analytics event tracking tag (i.e. Tag Type of Google Analytics or Universal Analytics; Track Type of Event). Add the rule you created in the previous step as the firing rule (for example, "Form Submit"). Enter a Category, Action, and and Label for the event. For example, you might use the following:
Category "Forms"
Action "Submit"
Label "Lead Gen".
Save a version of the container and publish it.