Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 19th May 2015, 11:30 AM   #1
Advanced Warrior
 
Join Date: 2007
Location: , , Israel.
Posts: 601
Thanks: 168
Thanked 16 Times in 15 Posts
Default
How Do You Implement Facebook Conversion Pixel On "Event"
Share on: 
fb share twitter share gplus share more share

How to implement pixel firing dynamically when action is performed like button click by visitor? I think in Google Analytics this is known as "Event" and currently I want to make conversion pixel to know when visitor opt- in by clicking button on newsletter subscription form.

I heard about "jQuery Cookie" but I am not a programmer to know how to implement this. I can edit WordPress themes to insert scripts but maybe there is WordPress plugin that allows to add event-trogger functionality to any interactable element on webpage to fire conversion pixel?

Thanks
Boris_yo is offline  
Unread 19th May 2015, 05:52 PM   #2
HyperActive Warrior
War Room Member
 
emptee's Avatar
 
Join Date: 2014
Location: New Zealand
Posts: 210
Thanks: 25
Thanked 81 Times in 71 Posts
Default
Re: How Do You Implement Facebook Conversion Pixel On "Event"
Share on: 
fb share twitter share gplus share more share

Hi Boris,

I'm not aware of any event based triggers at the moment - but it's easy enough to rig them up

Cookie libraries (eg. jQuery cookie plugin) aren't going to help you here, as you don't own facebook.com..

Just hook the button/link and dynamically create/load the pixel - it's pretty straight forward, something like this would work:

jQuery('#mybutton').click(function(){
jQuery('body').append(jQuery('<img src="http://facebook.com.....">'));
});

Alternatively, just throw the pixel onto a "thank you" page..

Cheers,
Michael

emptee is offline  
Closed Thread


Bookmarks

Tags
conversion, event, facebook, implement, pixel


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:58 PM.