How to track which pages caused custom events in Google Analytics? - google-analytics

I have multiple pages being tracked by google analytics. On all these pages I have an outbound link for which I make a call to create a custom event - the action is named the same on all the pages.
How can I see a breakdown of which pages caused this event to occur. I.e.
Page 1 - 7 clicks on outbound link, Page 2 - 2 clicks on outbound link, Page 3 - 1 clicks on outbound link, Page 4 - 19 clicks on outbound link
Thanks!

All events sent to Google Analytics send with the Page they were sent from (defined by location.pathname and location.search combined, if I'm not mistakened).
You can drill down into what pages those events occurred in by clicking the secondary dimension dropdown (by default, it says "None") and select "Page".

GA has made several changes since 2011, and so Yahel's answer is outdated.
To see all pages where an event fired, you need to go into Events >> Overview and click the event category you care about. This will take you into Top Events, where you can select secondary dimension Page to see top pages where your event category is firing.
You can drill down further by selecting Primary Dimension: Event Action and secondary dimension Page.

Related

Tracking page views when item is out of stock

I want to track page views of items that are out of stock using Google Tag Manager events.
My trigger in GTM is based on the visibility of an element on the page (the out of stock notice). My event and tag are set to fire once per page. These conditions appear to be working properly.
At present, if I navigate to a product that is in stock, then the tag does not fire. If I then navigate to an item that is out of stock, the tag fires.
However: After viewing an out of stock item, as I continue to browse other in-stock items on the website, the event seems to persist as I can see in Google Analytics that my page view count displaying this event continue to rise for items that are not in stock.
I must have something configured wrong or misunderstand how something works.
I looked for solutions like ending an event or resetting the status of an event to no avail. What else should I consider?
EDIT:
Here is how my tag looks:
And here is my trigger:

GA Event Tracking - Double form submission event logged

I have set up event tracking to track how many times the page is visited + how many times a modal trigger button is hit + How many times a form in the said modal is submitted.
Implemented tracking via GTM.
Now when I test with the GTM preview tool, events are reflecting fine but the form submission is displayed twice (with the event triggering for both) even tho form is submitted only once as intended.
Does this mean the GTM is logging 2 events for each submission or is having 2 occurrences in GTM preview a normal thing?
Screenshot of the preview tool
It is not normal, it means that the event is sent 2 times.

GTM trigger not firing on custom pop-up screen

On our site, https://www.nzmotorhomerentals.co.nz/ we have created an tag in our GTM container to track Adwords conversion, however are having issues getting the tag to fire when a user clicks the Confirm button at the end of the booking process. We believe this is due to the pop-up screen once a user clicks on a search result.
At the moment the booking process is as follows:
1. User lands on homepage or other landing page.
2. User enters search criteria, and clicks 'Search'
3. User lands on /results page and then clicks 'Select' on chosen vehicle
4. Pop-up window appears and user clicks 'Go to final step'
5. User lands on final booking page and clicks 'Confirm'. When a user clicks 'Confirm' this is when we want the tag to fire.
We have tried a wide range of trigger variables with no luck. We managed to get a tag to fire on step 1 when a user clicks 'Search' as a way of troubleshooting, however have not been able to get any tags to fire once a user lands on the /results page and further into the booking flow.
All content from /results onward is a custom piece of html that is pulling from a broker site (this website is an affiliate model). We are wondering if Google Manager is able to read this custom code at all.
Any assistance on how variables to set to fire this trigger is much appreciated.
your booking form is implemented in the iframe and is unavailable to Tag Manager.

How to set up a tag to record clicks of sort by categories list of a product page

I am very new to gtm and trying to set up a tag that can record clicks of the sort by categories of all product pages.
Each category page has the sort by (like any other website), it for example has the options:
Price high to low
Price low to high
Date added
Name a-z
Name z-a
What I am trying to do is to be able track how many people click on those individual sort by categories? I am not sure how to go about this, need guidance.
Thanks!
You need to identify the click as it happens and then send the information to GA. So you need this two blocks in GTM: an universal analytics tag as "event" and a trigger which listens for clicks.
If you don't know CSS selectors the most easy way to find the right values for the trigger is by try and error. Activate the GTM debug mode and navigate to your list.
Now click on the sorting feature, does a click appears in the GTM debug console (the one you see in the lower part of your page)? If no click appears you need to activate at least one trigger which simply listens for any clicks that happen on your page. Now when you see clicks in your GTM debug console: select the click (in "summary" tab of gtm debug console) which appeared when you sorted. Now when the click is selected in summary the "variables" tab will show you all values within your defined variables.
All click variables should be activated in GTM. Then you can see what information is hold in them, when the user sorts.
As you now know the values of your variables when the sort action appears, you should use this information to create a trigger (something like: click element contains "xyz") and an universal analytics event which will send event category, action and label (one of these should contain information on click element) to Google Analytics as soon as your trigger is activated.

Google Tag Manager Event Tracking - Pass a page as a parameter

I want to track the form submit event on Google Analytics using Google Tag Manager, and I would like to pass the page where the event was triggered as a parameter.
Considering that the form appears on several pages, how can I configure this?
Thanks in advance.
Just capture the event without passing the page, then view the pages that event was fired on by viewing the Behaviour > Events > Pages report in Google Analytics.

Resources