Skip to content

Commit

Permalink
Merge pull request #8 from PiwikPRO/bugfix/PPI-254-track-campaign-inf…
Browse files Browse the repository at this point in the history
…ormation

[PPI-254] Tracking campaign information using the SPA integrations
  • Loading branch information
danieltwork authored Jul 15, 2022
2 parents 1aeee73 + 4e6a059 commit efde05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/paqService/paq.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function push(collection: any[]) {
(window as PiwikProWindow)._paq = [];
}

(window as PiwikProWindow)._paq.push(["setCustomUrl", window.location.pathname]);
(window as PiwikProWindow)._paq.push(["setCustomUrl", window.location.href]);
(window as PiwikProWindow)._paq.push(["setDocumentTitle", document.title]);
IS_DEBUG && console.log('Push', collection);
return (window as PiwikProWindow)._paq.push(collection);
Expand Down

0 comments on commit efde05f

Please sign in to comment.