angulartics-google-adwords-remarketing-tag
Google Adwords Remarketing Tag 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-google-adwords-remarketing-tag
Then add angulartics.google.adwords.remarketing.tag
as a dependency for your app:
require('angulartics')
angular.module('myApp', [
'angulartics',
require('angulartics-google-adwords-remarketing-tag')
]);
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-google-adwords-remarketing-tag
Add the <script>
to your index.html
:
<script src="/bower_components/angulartics-google-adwords-remarketing-tag/dist/angulartics-google-adwords-remarketing-tag.min.js"></script>
Then add angulartics.google.adwords.remarketing.tag
as a dependency for your app:
angular.module('myApp', [
'angulartics',
'angulartics.google.adwords.remarketing.tag'
]);
Consider using Asynchronous verison of Google Adwords Remarketing Tag
By default, Google Adwords Remarketing Tag does an automatic pageview hit on page load, And it does not supports Multiple pageviews.
If you want to track PageView correctly, Please consider using async version of Google Adwords Remarketing Tag Script:
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion_async.js" charset="utf-8"></script>
Changes in the Google Adwords Remarketing Tag snippet
Please set your conversion id by setting _gart_conversion_id
on window object:
<script type="text/javascript">
window._gart_conversion_id = 989712485; // Required
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion_async.js" charset="utf-8"></script>
Done. Open your app, browse across the different routes and check the Audiences page in Google Adwords 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