Step 1: Add Tracker

You have to put this script tag on every page from which you want to call out our functions:

<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>

reuse descriptions from regular beacons for each beacon type and verify it with Matt.

autoSearchEvent
object
vars
object

The vars configuration object can be used to define new key-value pairs or override existing variables that can be referenced in request values. Read more

required
extraUrlParams
object

The extraUrlParams configuration object specifies additional parameters to be included in the request. By default, extra URL params are appended to the query string of a request URL via the usual “&foo=baz” convention. Read more

linkers
object

The linkers feature is used to enable cross domain ID syncing. Read more

required
viewProductEvent
object
vars
object
extraUrlParams
object
linkers
object
moreRefinementsEvent
object
vars
object
extraUrlParams
object
linkers
object
addToCartEvent
object
vars
object
extraUrlParams
object
linkers
object
removeFromCartEvent
object
vars
object
extraUrlParams
object
linkers
object
viewCartEvent
object
vars
object
extraUrlParams
object
linkers
object
orderEvent
object
vars
object
extraUrlParams
object
linkers
object