Jump to content
Sign in to follow this  

Facebook pixel

Recommended Posts

it is a code that you copy into your website, then facebook keeps track of every one that looks in you website and also keep track of all the sales there is so that you can target the same people

Were can i found the header and the footer. because that is were i need to copy it to.

Share this post

Link to post
Share on other sites

The skin is comprised of several template files. You will find them at /skins/name_of_skin/templates.

They are regular HTML files but incorporate template rendering commands - Smarty syntax. They have the filename suffix of .php but they are not PHP scripts.

The file you are wanting is main.php. There is something you must keep in mind if editing a template.

Smarty syntax starts with an open-brace immediately followed by the command or variable name followed immediately by a closing brace. This syntax looks exactly like javascript syntax.

The difference is that javascript can have spaces and newlines between the braces and what is contained within them. Smarty has no whitespace allowed.

So, the easiest way to add javascript to a template and not have Smarty try to interpret it is to do this:


Tell Smarty that between its {literal}{/literal} commands, treat everything inside literally.

That is the easiest but least versatile way to add javascript to a template.

A more versatile way is to create a plugin which allows for custom javascript to appear on the final rendered page depending what that page is showing: viewing a product, searching, registering, checking out, successful purchase, etc.

Edited by bsmither

Share this post

Link to post
Share on other sites

for advanced tracking, facebook asks for cubecarts parameters for:


email address

first name

last name


i tried using email first_name last_name, for this but it didnt work.


Also, for the conversions settings, does anyone know the parameter for the conversion value?

as well as how to set up tracking the product code / quantity purchased?

im getting errors such as:

Missing content_type parameter from "Purchase"

Missing content_ids or contents parameter from "Purchase"

Edited by huggettm

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...