Skip to content

Instantly share code, notes, and snippets.

@astfarias
Created November 9, 2017 18:42
Show Gist options
  • Save astfarias/187597f59ed2bf05430636098d41415f to your computer and use it in GitHub Desktop.
Save astfarias/187597f59ed2bf05430636098d41415f to your computer and use it in GitHub Desktop.
AIDAX Integration Script for Google Tag Manager (GTM)
//This script needs to be fired on All Pages and/or before any AIDAX capture in GTM
<script>
var gtm = google_tag_manager[{{Container ID}}];
try{
// INSERT SCRIPT AIDAX: http://doc.aidax.com.br/
gtm.onHtmlSuccess({{HTML ID}});
} catch(e) {
gtm.onHtmlFailure({{HTML ID}});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment