This article was last updated on the June 27, 2016.
Setup a child theme
If you plan on making any updates or additions to X outside of a minor CSS adjustment or a simple script such as Google Analytics, you will definitely want to look into setting up a child theme on your site. While smaller CSS and JavaScript changes can easily be managed via the Custom section of the Customizer, a child theme will allow you to do all that and much more with greater flexibility and control. If you've never …

This article was last updated on the January 2, 2017.
.x-hook-list-table .file { width: 300px !important; }
If you've worked with WordPress for even a short amount of time, it is very likely that you've heard of hooks (i.e. actions and filters). Hooks are an incredibly important part of the WordPress ecosystem as modifying core files is a big no-no. However, properly placed actions and filters can allow a user to easily overwrite or output some new content to a page or post with ease. Essent…

When using a link, no need to add the button tag unless you do have specific reason. Also, since you have define id as jelentkezes all small letters, please update this line var button = document.getElementById('Jelentkezes'); to use jelentkezes small letters also.

1) 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

This makes sure the click event is triggered even if the button is added or rendered later than the code.

2) 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.

You will have to change it to something similar from Facebook tracking. I'm not sure which but you may want to contact a Facebook developer to see what options you have. My previous answers are based on the generic way of tracking, it still depends on your tracking code if it's supported. But based on my experience, Google has better and many available features and options for tracking. What I just presented is a general idea and why it's not working