searchdiscovery / Apollo-Documentation-Xactly-Corp

An Apollo generated Event Driven Data Layer
0 stars 0 forks source link

Scroll Depth #20

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

Scroll Depth

User scrolls down the page

Javascript Code

window.dataLayer = window.dataLayer || [];
dataLayer.push({ event_data: null });  // Clear the previous event_data object.
dataLayer.push({
  "event": "scroll_depth",
  "detailed_event": "Scroll Depth",
    "event_data": {
        "milestone": "<milestone>"
    }
});
milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Moving this to SDI Review. Site to test : http://xactlystg.prod.acquia-sites.com/

Thanks

jerry-bennett commented 1 year ago

Tested on: http://xactlystg.prod.acquia-sites.com/

Use case: Scrolled down to the middle, then bottom of each page.

Status: Not seeing any data layer events for scrolling at the moment, even after accepting cookies.

rossozburnsdi commented 1 year ago

@milind0299 We aren't seeing this event fire in the data layer

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

We have fixed this in our local environment, will move it to stg upon our QA approval.

Thanks.

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

This is now fixed, please let us know for any queries.

Thanks

jerry-bennett commented 1 year ago

@milind0299 Can you take a look at the 100% scroll milestone not firing?

Tested on: http://xactlystg.prod.acquia-sites.com/

Use case: Scrolled down to the bottom of the homepage. Also tested the solutions page.

Status: Working almost as expected, got three separate data layer events, one for 25%, one for 50%, and one for 75%. Did not see one for 100%.

Image

Image

Image

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

This is now fixed.

Thanks

rossozburnsdi commented 1 year ago

Tested on: https://xactlystg.prod.acquia-sites.com/resources/infographics/forecasting-build-vs-buy

Use case: Scrolled down to the middle, then bottom of each page.

Status: Looks good seeing all scroll events

Image

jerry-bennett commented 1 year ago

ROUND 2 QA: @rossozburnsdi

Tested on: http://xactlystg.prod.acquia-sites.com/ (in GTM preview mode)

Use case: Scrolled to the middle, then bottom of the page.

Status: Looking good, seeing an event for 10, 25, 50, 75, 90, and 100% scroll. Seeing the tags fire in GTM as well. However, only seeing 25, 50, and 75% in the network calls. @rossozburnsdi is this an issue?

Image

Image

rossozburnsdi commented 1 year ago

Missing data layer event for %100. Will confirm will client if this is a blocker.

rossozburnsdi commented 1 year ago

Image

jerry-bennett commented 1 year ago

PROD QA: @rossozburnsdi

Tested on: https://www.xactlycorp.com/

Use case: Scrolled to the bottom of the homepage slowly.

Status: Looks great, seeing each milestone fire in both the console and network tab including the 100% scroll.

Image

Image