Closed andresclua closed 1 year ago
The latest version of this plugin requires swup 4 to work. If you want to stay on swup 3, you can install the previous release:
npm install @swup/ga-plugin@^1.1.0
@andresclua Sorry, I closed this one very quickly -- does specifically requesting version 1.1 of the plugin work for you?
No worries @daun ! I fix it, and swap to v4 🥇
One thing that happened to me is that the documentation for analytics didn't work for me at first. On the website, it says:
// On sites using analytics.js
window.ga('set', 'title', document.title);
window.ga('set', 'page', window.location.pathname + window.location.search);
window.ga('send', 'pageview');
But, I ended up doing it this way:
gtag('set', 'title', document.title);
gtag('set', 'page', window.location.pathname + window.location.search);
gtag('send', 'pageview');
Should anything be changed in this case?
Both are fine! The plugin checks for the existence of either ga
or gtag
and performs the tracking accordingly.
Hey guys, I was finishing my project ( started long time ago), and now I'm facing this issue. I can't install the plugin with 3.0.5 version.
Any suggestion? I do not want to migrate to v4 yet. using node v19.8.1
Thanks in advance!