- Attribution should be installed by a developer.
page()can be installed with Google Tag Manager.
- Do not minify or bundle Attribution snippet inside a webpack or it may render unstable in some conditions.
- Please try to avoid putting snippet inside a JS closure. You are still free to call
page()from inside your JS app using
Page is called on page load automatically (it is included in the Attribution app snippet). You only need to call page if you have a single page app or you want to pass in the name of the page.
Under the hood, page just calls track with the event name ‘Viewed a Page’ as the event name and the URL as a property.
|The name of the of the page, for example Signup or Home.|
|A callback function that gets called after a short timeout.|