Closed Bug 1277252 Opened 8 years ago Closed 8 years ago

Add Scroll Events to Variant Homepage

Categories

(www.mozilla.org :: Analytics, defect)

Production
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u570438, Assigned: jpetto)

References

()

Details

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
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.