Issue with creating virtual pages at GTM and sending it to GA - google-analytics

Got a problem creating a funnel in GA with virtual pages. There is a landing with three events.
- Button "Sign up" - after clicking - you go down to the next button
- Button "Participate" - after clicking - form opens, where you should fill you name, phone etc
- Button "Submit" - after clicking - form submits and that's it.
I created events on all of these steps and it works well in GA.
But also I need a funnel. There is no redirecting, so I tried to use virtual pages to track this clicks. But after all settings, nothing happens. Funnel doesn't work and it doesn't track any "visits" to virtual pages.
I read many manuals and everywhere it seems easy and works well. But not in my case.
ga settings
gtm settings

From your screenshot, you are using an Event tag. If you are trying to track them as virtual pageviews, use a pageview tag with page and title configured as fields under More Settings > Fields and fire the pageview tag via a click trigger

Related

GTM UA Tag - Track Page Views using All Clicks OR All Pages as triggers

I'm still learning GTM, so please forgive me if this is a basic question. I've been researching but can't find anyone with a similar issue.
What I want is simple: to set up GTM to track page views in UA. (Easy enough.) But I looked at the setup of my predecessor, and he had the UA tag set up like this:
Tag Type: Google Analytics (UA)
Track Type: Page View
(GA ID)
Triggering:
All Clicks (All Elements)
OR
All Pages (Page View)
I'm trying to understand why they set it up with the All Clicks trigger. What I fear is that this is recording a page view every time a click is recorded, but I can't imagine my predecessor would have created a strange setup like that. I'd just as soon eliminate the All Clicks trigger, but I don't want to harm any of our future data without fully understanding. Bottom line question: is there any good reason for this tag to be set up this way, or is it wrongly inflating my numbers? Thanks in advance for any help.
It's kind of weird.
If the tag is for tracking pageView. The trigger should only be all page.
Still there might be 1% that your predecessor really knows what he or she is doing.
Maybe you can share the website and we can check if it is abnormal or not.
Update about the click trigger
The website is firing "Pageview" when click the link.
You can change the GA tag from pageview to event and set up like this
Category : click
Action : link_click
Label : {{the click Url}}
Then you can see which user is doing pageview and who clicks the link.

Customize history change trigger to skip hashchanges on same page in GTM

I have a website with Barba.js to use pushState API to load pages. So to track these virtual page loads in GTM I added a History Change trigger to fire analysis page view event. It works great.
But if I have on page anchors, e.g
About
This also fires the History Change event, and cause google analytics to record another page view which I don't want.
Is there a way to make a history change trigger that only fires on new pages e.g if /services changes to /about , and doesn't fire when URL changes from /about to /about/#about
Update :
I have now used 'History Source' variable equals to 'pushState' condition to filter history change events because the hash change events is showing 'popState' in the History Source in the Data Layer variables. I am not 100% confident that this is correct, but it seems to be working.

Google tag manager events not appearing in google analytics

A client has requested that we implement google tag manager on to track submission of all the forms on his website. We have set up all of the tags and triggers per the instructions that we found online but it appears that only 1 tag is actually working. We the Solids Conveying Case Studies event appear in the behavior > events> overview screen of analytics but not in the Real Time screen. All other tags do not appear to fire at all. We did view the preview/debug mode and see what appears to be a glimpse of a tag after the form submits and the page reloads. Also during our debugging process we tried setting the action to trigger on the form id, and we tried checking Wait for Tags. Any assistance would be greatly appreciated.
Here is a link to the website: https://foxvalve.com
Here is an example of a tag that we set up.
Tag Type: Universal Analytics
Track Type: Event
Category: Air Gas Ejectors (Different Depending on the Form)
Action: Submit
Label: Form
Value: empty
Non-Interaction Hit: True
Google Analytics Settings: Google Analytics Variable
Trigger Configuration
Trigger Type: Form Submission
Trigger Fires On Page URL equals (the page URL of the form)

Google Tag Manager Form Submission and form Click

In my website I have a link that direct user to form submission page.I want to track how many user have clicked the link and also have click the submit button after filling the form
I want do the implementation using Google tag manager
You can use 2 virtual pageviews and one goal with a funnel. One pageview will be for link click and other will be for form submition.
You'll want to use a Form Click Listener (see https://support.google.com/tagmanager/answer/3415369?hl=en). Make sure the "Wait for Tags" option is selected when you're setting up the listener. Also make sure it sends an "event", not a "virtual pageview".
It's better to use an event rather than a virtual pageview in this case. Using a virtual pageview will inflate your pageview stats, causing them to be a lot higher than they should be. Virtual pageviews should be used in situations where something happens that should be counted as a pageview but the page doesn't actually change - for example: content loading in a page whose URL doesn't change).
I hope this helps. Please comment if you need clarification.

Tracking Form Submission Google Tag Manager

I want to track generic visits and form submissions from www.myurl.com/submission and for that I have setup 3 tags in google tag manager:
Google Analytics - for generic analytics stuff
Rule:
{{url}} matches RegEx .*
Form Listener - to trigger gtm.formSubmit
Rule:
{{url}} matches RegEx .*
Track Form submission - to trigger an analytics event to be tracked in analytics
Rule:
{{url}} contains /submission
{{event}} equals gtm.formSubmit
Currently Google Analytics see's the form submission and tracks a goal when I publish the tag (even if I use incognito mode), but when I tried from a different computer/different account, it doesn't track the GA event triggered by "Track form submission.
Also, if I email the preview/debug page to someone it triggers the event, but once they exit that mode, it stops triggering it. Any ideas?
Pedro, the preview/debug mode work only locally - that is, the same computer, same browser. If everything seems to work (also use GA Debug in Chrome, publish the container and see if everything works live. If not, try to fiddle around a bit.
A personal suggestion -- sometimes Click listener is a better choice and it's more flexible. Using element or custom JS macros gives you all the flexibility you need and you could simply track the conversions as the clicks on submit button.

Resources