Skip to main content

How to install Amplink Data Layer script

Preparation

Each time you add a script to your website, you must provide unique identifiers for your account and Workspace.

To see them, log in to the application and in the side menu click on the item called 'Install Data Layer'. In the window that appears there will be both IDs that you can copy.

Example banner

Install script

Copy script below, replace identifiers and paste the script on every page you want to use it

<link rel="preconnect" href="https://app.amplink.io"/>
<script type="text/javascript" id="amp-cse" async src="https://app.amplink.io/data-layer/data-layer-script.js"></script>

<script>
window._amplinkDataLayer = window._amplinkDataLayer || [];

window._amplinkDataLayer.push({
tenantId: 'YOUR_TENANT_ID',
workspaceId: 'YOUR_WORKSPACE_ID'
});
</script>