Edi
Forum Replies Created
-
Thanks Tim!
I already solved it in a different, more complicated way than the one you mentioned but I will share it here to help others as well:
1. I downloaded the “Header Footer Code Manager” plugin.
2. With this plugin, I added a “snippet” to the header of the relevant page, with the standard Facebook Pixel.
3. This is the step where I added the conversion tracking.
I created another “snippet”, but this time I set the location to “After Content”.
The code of the snippet is:<script type="text/javascript"> document.getElementById('submitbtn').addEventListener('click', function() { fbq('track', 'Lead'); }, false); </script>
4. The previous step is set to record a conversion every time a button with an id=”submitbtn” is clicked.
So now you need to go to the Elementor form, and under the “submit button” section set the button id to “submitbtn”.That is how I did it!
It may be a bit harder, but it will be reliable and still capture conversions if you’ll change the button text, unlike with the Facebook Event Setup Tool that will stop recording conversions if you change the button text.Hope I helped someone!
EdiI still can’t find a way to “fire” the facebook pixel on form submit.
I just need to use the form’s onSubmit or onClick HTML tags but how can I do that?.
I would really appreciate your help.
How can I do that? I’m not very good with code.
I found this page about the button widget that has a section called “How to Track “Button onClick” Event”.
This is only partially relevant since it’s for a single button, not a form as I need since I can’t edit the button’s css id in a form. I need it to run on form submit.Can you help me with the code I need to put in the HTML widget and how should I make it fire on form submit?
Thanks
Forum: Fixing WordPress
In reply to: Editing tag for a single pageShould I put it in the beginning or towards the end of header.php? Where exactly?
Forum: Networking WordPress
In reply to: Can’t edit default image URL in WordPress MultisiteSo what can I do to change it or at least remove the date?
Forum: Installing WordPress
In reply to: problem In Installcan you recommend me a good hosting?
Forum: Installing WordPress
In reply to: problem In Install000webhost
What I need to do?