Jump to content

Facebook pixel for Prestashop


JustSmile739

Recommended Posts

As you can see in the tittle, i want to use FB pixel to remarketing and running ads. They said i need to

" Copy the code below and paste it between the <head> and </head> in your website code. The pixel will track visits to every page of your website." . But i dont know where should i put the code in Preshop. Can someone help me, thank you for reading.

 

// Sorry for my bad English

post-1204505-0-39606300-1461732829_thumb.png

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Hi Tom

 

I hope you have already found the solution. But just in case you have not:

 

You have to insert the code in the file header.tpl for your selected theme. The path would be something like this: themes/<theme name>/header.tpl

 

Search for the </head> tag and place the code you received from FB just above that line. You have to make a small change in that code. You have to wrap the script in a {literal} block. Example:

 

<script>{literal}

...............

{/literal}</script>

 

- Vikrant

  • Like 1
Link to comment
Share on other sites

Hi Tom

 

I hope you have already found the solution. But just in case you have not:

 

You have to insert the code in the file header.tpl for your selected theme. The path would be something like this: themes/<theme name>/header.tpl

 

Search for the </head> tag and place the code you received from FB just above that line. You have to make a small change in that code. You have to wrap the script in a {literal} block. Example:

 

<script>{literal}

...............

{/literal}</script>

 

- Vikrant

 

I have already found the way to do this, but thank for your knowledge; this will be very useful for another search this problem in google

Link to comment
Share on other sites

  • 2 weeks later...
  • 10 months later...
  • 2 weeks later...
  • 3 months later...

Can't we just use the code that facebook provides?

 

We use it
 

https://developers.facebook.com/docs/ads-for-websites/pixel-events/v2.10

 

But only some values need to be replaced by

  content_name: 'Really Fast Running Shoes',
  content_category: 'Apparel & Accessories > Shoes',
  content_ids: ['1234'],
  content_type: 'product',
  value: 0.50,
  currency: 'USD'

Need to add values and store and product parameters

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...