Google Tag Manager
Installing Saltfish: Google tag Manager
Install Saltfish
Sign into your Google Tag Manager account.
Go to Tags.
Click New.
Click Tag Configuration.
Click Custom HTML.
In the HTML field, paste the code below (make sure to replace '
YOUR_UNIQUE_API_TOKEN'with your unique API token: https://studio.saltfish.ai/settingsClick Triggering.
Choose 'Initialization', or another more suitable trigger if you have one.
Click Save and give the tag a name, such as “Saltfish initialization”.
Submit your latest changes in Google Tag Manager ensure they are pushed live to your site
<script>
(function () {
if (window.saltfishHasInit) return;
window.saltfishHasInit = true;
var script = document.createElement("script");
script.src = "https://storage.saltfish.ai/player/player.js";
script.async = true;
script.onload = function () {
if (window.saltfish) {
window.saltfish.init({ token: "YOUR_UNIQUE_API_TOKEN" });
console.log("[Saltfish] Initialized");
window.saltfish.identifyAnonymous();
}
};
document.head.appendChild(script);
})();
</script>Remember to replace 'YOUR_UNIQUE_API_TOKEN' with your unique API token: https://studio.saltfish.ai/settings
Last updated