What is Google Tag Manager?
A description of GTM can be found here.
What can I do with Google Tag Manager?
GTM enables you to independently integrate various tools with your platform. The chat tool that we use from Intercom can be integrated with GTM for example.
AppYourself is a so-called one page application. Clicks and page changes take place without a server request. Therefore the URL does not change.
Setting up Google Analytics
- Go to Tags and create a new tag for Google Analytics
- Enter your GA Tracking-ID and the following tag configuration
- Erfassungstyp = Seitenaufruf
- Festzulegende Felder
- allowLinker = false
- anonymizeip = true
- page = {{virtualUrl}}
- title = {{virtualUrl}}
Connect Intercom (with GTM)
- Create a new tag
- Choose product = user defined HTML tag
- Configure tag by using this custom code. Exchange <APP_ID> with the App-ID of your intercom:
<script type=”text/javascript”>
(function(){var w=window;var ic=w.Intercom;if(typeof ic===”function”){ic(‘reattach_activator’);ic(‘update’,intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement(‘script’);s.type=’text/javascript’;s.async=true;
s.src=’https://widget.intercom.io/widget/<APP_ID>’;
var x=d.getElementsByTagName(‘script’)[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent(‘onload’,l);}else{w.addEventListener(‘load’,l,false);}}})()
</script>
<script type=”text/javascript”>
var AYintercom = {
login: function(clientEmail, subdomain, name){
window.Intercom(‘boot’, {
app_id: ‘<APP_ID>’,
email: clientEmail,
name: name,
resellerSubdomain: subdomain,
widget: {
activator: ‘#IntercomDefaultWidget’
}
});
},
logout: function(){
window.Intercom(‘shutdown’);
},
update: function(data){
window.Intercom(‘update’, {
“email”: data.email,
“app-id”: data.appRandomId,
“app-name”: data.appName,
“plan”: data.planName,
“plan-id”: data.planExternalId,
“has-native”: data.hasNative,
“order-date”: data.orderDate
});
},
updateDesign: function(data){
window.Intercom(‘update’, {
“email”: data.email,
“industry-id”: data.industryId,
“industry-name”: data.industryName,
“template-id”: data.templateId
});
}
};
</script>
4.Trigger by “firing”
Comments are closed.