Skip to content

Instantly share code, notes, and snippets.

@inacionery
Created November 1, 2018 12:41
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 inacionery/bf4670457ff27ad1ebb0d4558c1cfc98 to your computer and use it in GitHub Desktop.
Save inacionery/bf4670457ff27ad1ebb0d4558c1cfc98 to your computer and use it in GitHub Desktop.
<script>
(function(u, c, a, m, o, l) {
o = 'script';
l = document;
a = l.createElement(o);
m = l.getElementsByTagName(o)[0];
a.async = 1;
a.src = u;
a.onload = c;
m.parentNode.insertBefore(a, m);
})('https://analytics-js-cdn.liferay.com', function() {
var config = {
analyticsKey: 'MyAnalyticsKey',
dataSourceId: 'MyDataSourceId',
endpointUrl: 'https://osbasahcerebropublisher.lfr.cloud'
};
Analytics.create(config);
Analytics.send('pageViewed', 'Page');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment