duracelltomi / gtm4wp

Google Tag Manager plugin for WordPress
https://gtm4wp.com/
GNU General Public License v3.0
147 stars 96 forks source link

FacebookPixel template not working #344

Closed FlexxAlex closed 5 months ago

FlexxAlex commented 5 months ago

Hi, I'm trying to implement this template: https://github.com/jabjabonlinemarketing/FacebookPixel-by-JabJab/tree/main But it keeps giving me an error. 'Import failed because of wrong template format'

The one from Simo works, but I'm trying to implement yours because of the datalayer parameters.

duracelltomi commented 5 months ago

I just downloaded and imported the .tpl file and it works for me: https://raw.githubusercontent.com/jabjabonlinemarketing/FacebookPixel-by-JabJab/main/template.tpl

FlexxAlex commented 5 months ago

First off, I'm not skilled with coding. If I put in the .tpl it gives me an error:

1 Error(s) parsing the input: missing ';' at 'By' Offending token '' at 3,0.

I solved this by inputting '//' before written text Then it gives me:

1 Error(s) parsing the input: missing ']' at ',' Offending token '' at 56,3.

If I do what it expects, I keep getting errors down the road. I'm obliviously missing something.

duracelltomi commented 5 months ago

I am not sure I can see the reason based on those error messages. I recorded a little video that might help to see the difference between how I install the template and how do you the same:

https://vimeo.com/937742476/1ae897ba07?share=copy

FlexxAlex commented 5 months ago

Thanks now it worked!