Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e6c8ba commit eb1cd34Copy full SHA for eb1cd34
1 file changed
_templates/layout.html
@@ -38,18 +38,18 @@
38
fbq('init', '243028289693773');
39
fbq('track', 'PageView');
40
41
- $("a.reference.download").on('click', function(){
+ $("[data-behavior='call-to-action-event']").on('click', function(){
42
fbq('trackCustom', "Download", {
43
tutorialTitle: $('h1:first').text(),
44
downloadLink: this.href,
45
tutorialLink: window.location.href,
46
- downloadTitle: this.innerText
+ downloadTitle: $(this).attr("data-response")
47
});
48
ga('send', {
49
hitType: 'event',
50
eventCategory: 'Download',
51
eventAction: 'click',
52
- eventLabel: this.innerText
+ eventLabel: $(this).attr("data-response")
53
54
55
0 commit comments