Hello!
I am trying to manually track a 'lead' event when a user visits a certain page.
Currently I am adding a custom code snippet under Tracking and Analytics with the following code, and setting it to run on the aforementioned page.
<script type="text/javascript">
wixWindow.trackEvent("Lead");
</script>
I already have a facebook pixel installed and tracking page view events successfully, but I'd like to get the facebook pixel to be tracking 'lead' events as well for this page.
Thank you for the help!
This code should go into the pages code, not under tracking & analytics. You also need to import wixWindow from ”wix-window” or the similar. Look in the API for Wix Window.
i am trying to track leads on multiple pages but it leads that the function only tracks one page lead at a time. I have multiple pages that need to track leads. Please help :(
@Andreas
Hello, thank you for the advice. I am now using
import wixWindow from 'wix-window';
wixWindow.trackEvent("Lead");
This time inside the wixCode console in the page editor for the specific page. I had not noticed this section previously (only one day into wix). Thank you again!
Hi,
For questions about the Track & Analyze feature, please contact Wix Support team.
Thanks,
Tal.