Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting dulicate entry in matomo backend. #406

Open
svkanhasoft opened this issue Feb 1, 2021 · 0 comments
Open

Getting dulicate entry in matomo backend. #406

svkanhasoft opened this issue Feb 1, 2021 · 0 comments

Comments

@svkanhasoft
Copy link

svkanhasoft commented Feb 1, 2021

For support questions, please consider using Gitter - Chat


Hello Team,

I have use angular 9, we are getting lots of duplicate entries in matomo backend.
i have implemented this function when the form is submitted. we don't understand why we are getting dulicte entry.  

i have use code like below.
this.angulartics2.eventTrack.next({ 
  action: 'myAction',
  properties: { 
    category: 'myCategory', 
    label: 'myLabel',
  },
})

in my angular.json file version is  :  "angulartics2": "^10.0.0",
I have followed below URL: https://github.com/angulartics/angulartics2/wiki/Tracking-Events
I have installed: npm install --save angulartics2

Please find the attached the image: 
![screenshot--2021 02 01-16_39_21](https://user-images.githubusercontent.com/75246216/106453701-b7c30d80-64af-11eb-9224-28fe38ab62a6.png)

here is my index.html:
 var _paq = _paq || [];
    
      _paq.push(['enableLinkTracking']);
      _paq.push(['requireConsent']);
      (function () {
        var u = "adc.com/";
        _paq.push(['setTrackerUrl', u + 'piwik.php']);
        _paq.push(['setSiteId', '2']);
        var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
        g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
      })();
    }


hope we are getting help soon

Thank you in advanced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant