Dear all,
few days ago I tried to add a code on my site that theoretically should allow google analytics to track how many times users clicked on a specific download button (to download an ebook).
I followed instructions on a wix official video on YT, followed step by step and entered the suggested code, but so far no tracking of any event on my site, even though I tested it out by downloading the ebook on different devices. Any help please? thank you
Corvide code area looks like this now, new code is bold:
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
$w.onReady(function () {
//TODO: write your page related code here…
});
import wixWindow from ‘wixWindow’;
export function downloadButton_click(event) {
wixWindow.trackEvent(“customEvent”, {
event: “Funnel”,
eventCategory: “e-book-downloads”,
eventAction: “Downloads”,
eventLabel: event.target.label,
}) ;
}
website address: uniqsounds.com