Académique Documents
Professionnel Documents
Culture Documents
This should be setup in the top window so that it triggers on load prior
to the moatcontent.js header tag firing
If your Moat content tag has been configured to use the infinite scroll
API, it expects a callback called window.onMISReady to be present on
the page. When this function is called, a reference to the API object will
be passed as a parameter, indicating that the API is ready for use.
2. Setup Tracking: Now that you have the function defined, you
will need to send us specific tracking for an element or css
query selector that is part of the infinite scroll. You can add
this where you intend to pass the article to track.
Note: if your first article needs infinite scroll tracking, please be sure
to call track in the function right away.
Usage: moatApi.track(element[, options])
This function tells Moat content tag to trigger a new page view and
start tracking the article’s metrics (e.g. page dwell time, scroll depth,
scroll velocity) represented by element. I.e. when the article changes,
fire the moatApi.track function.
Parameters
element – must be a DOM element or a string that is a CSS query
selector. For accurate tracking, its dimensions must match the entirety
of the article.
levels – Array – An array of levels for the page view. Our content tag
tracks level 1 as domain, level 2 as title and level 3 as URL . An example
of what to send is below but could vary on your site so please adjust
accordingly.