Skip to content

Instantly share code, notes, and snippets.

@abhinavlal
Created March 11, 2020 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhinavlal/cfda14be23fb56be49c83acf81a137a4 to your computer and use it in GitHub Desktop.
Save abhinavlal/cfda14be23fb56be49c83acf81a137a4 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>CleverTap</title>
<script type="text/javascript">
var clevertap = {event:[], profile:[], account:[], onUserLogin:[], notifications:[], privacy:[]};
// replace with the CLEVERTAP_ACCOUNT_ID with the actual ACCOUNT ID value from your Dashboard -> Settings page
clevertap.account.push({"id": "TEST-86K-4Z9-K85Z"});
clevertap.privacy.push({optOut: false}); //set the flag to true, if the user of the device opts out of sharing their data
clevertap.privacy.push({useIP: false}); //set the flag to true, if the user agrees to share their IP data
(function () {
var wzrk = document.createElement('script');
wzrk.type = 'text/javascript';
wzrk.async = true;
wzrk.src = ('https:' == document.location.protocol ? 'https://d2r1yp2w7bby2u.cloudfront.net' : 'http://static.clevertap.com') + '/js/a.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wzrk, s);
})();
</script>
</head>
<body>
<h1>Test</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment