• Read through the FAQ (pasted below). But the issue I have is, *how do I access these variables*? I’ve looked around in GTM, as well as in Google Analytics, and I can’t figure out how I’m supposed to access scrolling variables (or really any variables this plugin collects). Are these just auto imported into GTM somehow? I’m missing the big picture.

    How can I track scroll events in Google Tag Manager?
    To track scrolling of your visitor you need to setup some tag in Google Tag Manager.

    What type of tags? In most cases you will need Google/Universal Analytics event tags but you can use AdWords remarketing or conversion tags as well to collect micro conversions or to focus only on visitors who spend more time reading your contents.

    There are five dataLayer events you can use in your rule definitions:

    gtm4wp.reading.articleLoaded: the content has been loaded
    gtm4wp.reading.startReading: the visitor started to scroll. You can use the dataLayer variable timeToScroll to see how many seconds have passed since the article has been loaded
    gtm4wp.reading.contentBottom: the visitor reached the end of the content (not the page!). timeToScroll dataLayer variable updated
    gtm4wp.reading.pagebottom: the visitor reached the end of the page. timeToScroll dataLayer variable updated
    gtm4wp.reading.readerType: at this point we are confident whether the visitor is a ‘scanner’ or ‘reader’ depending on how much time have passed since the content has been loaded. readerType dataLayer variable holds the type of the visitor

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Unfortunately I do not have a detailed guide for scroll tracking yet but I am preparing a new website for the project and here I created a general guide for reading GTM variables:
    https://gtm4wp.com/how-to-articles/how-to-access-a-data-layer-variable/

    The only problem is that I will need to update the images in those articles as the UI has been updated since I created those contents ??

    But I hope it can help you with your issue.

    Have a great day,
    Thomas Geiger

    Have you been able to create any further documentation for how to implement scroll tracking events using your data layer events?

    Is your code dependent on a specific DIV value like the original code was?

    thanks
    -j

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Sorry, I was not able to create that content yet.
    There is an option page in my plugin’s settings where you can setup what div id you would like to prefer to be used as “the” content div, so that events regarding “content bottom” and “page bottom” can be functioning properly.

    Have a great day,
    Thomas Geiger

    Probably a stupid question, but what do i do if my blog’s templates were created such that the primary content div only has a Class and not an id?

    -j

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    In that case you are not able to properly track scrolls. I would advise to manually add an ID to the content DIV and also contact the theme author to apply this change so that further updates also include this addition.

    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to track scrolling behavior in GTM? & Howto access variables in general?’ is closed to new replies.