Hi there,
There are many possible causes. And these are just the two
- Because the button is added to the slider. The slider usually clones the slides to create an illusion of loop which means, the button you’re clicking is not the same instance where the tracking is attached. Or, the tracking attach is executed even before the button is rendered dynamically. You may want to change your code to something like this
<script type="text/javascript">
jQuery ( document ).on('click', '#Jelentkezes', function() {
fbq('track', 'Jelentkezes', {
content_name: 'Rev Slider jelentkezes',
content_category: 'Jelentkezes',
content_ids: ['1234'],
content_type: 'product',
value: 0,
currency: 'USD'
});
} );
</script>
This makes sure the click event is triggered even if the button is added or rendered later than the code.
- The page loads as you click the button. When you click a link it loads the page instantly halting all the script execution of all the scripts within the page. Hence, it doesn’t have enough time to track it. Usually, trackers are triggered after you do something that’s why tracker are placed after the form was sent, after the ajax request is finished, and so on.
In this case of yours, you should wait for the tracking to finish its job before loading the page in the link. Unfortunately, facebook tracking doesn’t support callbacks so it’s not possible. Your only option is to place the tracking on the loaded page instead of attaching it to the button (eg. http://auto-plusz.hu/kapcsolat ), that’s the easiest.
Again, tracking should be triggered once the event is finished and it’s not possible in the button since the page will reload. Hence, place the tracking after the page load event.
Thanks!