angulartics-twitter-pixel
Twitter Pixel 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-twitter-pixel
Then add angulartics.twitter.pixel
as a dependency for your app:
angular;
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-twitter-pixel
Add the <script>
to your index.html
:
Then add angulartics.twitter.pixel
as a dependency for your app:
angular;
How your tracking code should look like
<!-- Twitter universal website tag code --><!-- End Twitter universal website tag code -->
Changes in the Twitter Pixel snippet
The snippet code provided by Twitter Pixel does an automatic pageview hit, but this is already done by Angulartics (unless you disable it) so make sure to delete the tracking line:
... ; ... </script>
Done. Open your app, browse across the different routes and check your account https://ads.twitter.com/accounts
twitter Pixel Helper (Chrome Extension)
The Twitter Pixel Helper is a troubleshooting tool that helps you validate your instalation. You can use this helper to validate that PageView was sent to Twitter correctly.
Documentation
Documentation is available on the Angulartics site.
Development
npm run build