Add Scroll Events to Variant Homepage

RESOLVED FIXED

Status

www.mozilla.org
Analytics
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: u570438, Assigned: jpetto)

Tracking

Production

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

2 years ago
Hi Jon,

Can you please add datalayer.push events to the variant home page when a user scrolls and each section becomes exposed? 

Please create this request when the bottom of the section header is exposed.

dataLayer.push({
‘event’: ‘scroll-section’,
‘section‘: section, //insert section title values include: ‘Mozilla in Action’, ‘Web Innovations’, ‘Firefox’
});

This should be relatively straight forward, however it might be tricky for the first one, 'Mozilla in Action' as different monitor sizes may show the bottom of the header when the page is loaded. In these cases, we only want to fire the tag if a user scrolls.

Please let me know if you have any questions.

Thanks,

PG

Comment 1

2 years ago
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/aba64c5ba721d37f846afe779ca6fb616aafb441
[fix bug 1277252] Add scroll tracking to home prototype A

https://github.com/mozilla/bedrock/commit/fee4c85c18822efc0d4248160af2a0aef465c28c
Merge pull request #4170 from jpetto/bug-1277252-home-prototype-a-gtm-scroll-events

[fix bug 1277252] Add scroll tracking to home prototype A

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.