angulartics-daum-clix-retargeting
Daum Clix Retargeting plugin for Angulartics.
Install
First make sure you've read installation and setup instructions for Angulartics.
Then you can install this package either with npm
or with bower
.
npm
npm install angulartics-daum-clix-retargeting
Then add angulartics.daum.clix.retargeting
as a dependency for your app:
require('angulartics')
angular.module('myApp', [
'angulartics',
require('angulartics-daum-clix-retargeting')
]);
Please note that core Angulartics doesn't export the name yet, but it will once we move it into the new organization.
bower
bower install angulartics-daum-clix-retargeting
Add the <script>
to your index.html
:
<script src="/bower_components/angulartics-daum-clix-retargeting/dist/angulartics-daum-clix-retargeting.min.js"></script>
Then add angulartics.daum.clix.retargeting
as a dependency for your app:
angular.module('myApp', [
'angulartics',
'angulartics.daum.clix.retargeting'
]);
Changes in the Daum Clix retargeting snippet
The snippet code provided by Daum Clix does not support async pageview hit, but this is supported built-in script in angulartics-daum-clix-retarget, so make sure to delete the tracking script:
<script type="text/javascript">
var roosevelt_params = {
retargeting_id:'NTubVj7i5Pe2XCY-e8-G6Q00',
tag_label:'g4dlUA3IRFSvJFk8Ad2Pkw'
};
</script>
<script type="text/javascript" src="//adimg.daumcdn.net/rt/roosevelt.js" async></script> <!-- REMOVE THIS SCRIPT! -->
Done. Open your app, browse across the different routes and check the Retargeting page in Daum Clix to see the hits.
Documentation
Documentation is available on the Angulartics site.
Development
npm run build
License
MIT
See full license on mooyoul.mit-license.org