Closed skolli853780 closed 7 years ago
Hi. Single-page app libraries like Angular and React do pose some problems for pageview tracking. I'm not familiar with Routerlink, but I have seen some folks use Angulartics to help with virtual pageviews. Alternatively, you can send virtual pageviews with a gas function by coding it yourself. Documentation can be found on page 14 of our Code Capabilities Summary
Let us know how it goes!
Can we use Angulartics along with your program? we have been asked to use DAP for Google analytics
You can. You just need to configure it to send the pageviews to the DAP UA ID. :)
how is your program different from Google analytics code..
can I replace https://www.google-analytics.com/analytics.js with DAP js file? please advise.. I tried Angulartics, there is some issue with our version of Angular..
Please read the instructions in the README. You don't use normal GA block to run DAP, you use our own custom <script>
that calls our code either locally or from our central location.
Hello,
We are using Digital analytics-program in our application, it works well for individual pages.. since our application is developed using Angular 2, we do not reload the whole page when a button is clicked.. I have looked at the documentation about Virtual pageview tracking.. one of the parameters gas function takes is url.. we use angular Routerlink to navigate between pages.. Is there a way we can pass Routerlink instead of URL? please advise
Thanks SK