cancel
Showing results for 
Search instead for 
Did you mean: 

Facebook Pixel with GTM

Facebook Pixel with GTM

Hi.

 

I'm trying to setup Facebook Pixel with GTM and I'm trying to setup an AddToCart event but i cannot figure out, how to get the title inside the content_ids i the FB pixel so I can use dynamics ads.

 

<script>
  fbq('track', 'AddToCart', {
    content_ids: '[PRODUCTNAME]',
  });
</script>

 

Is there anyone who have achieved this?

Thanks in advance.
Cheers!
/Daniel

4 REPLIES 4

Re: Facebook Pixel with GTM

Hi @TONZR ,

 

Are you trying to add the code manually or using a module?

 

Re: Facebook Pixel with GTM

Hi Damian.

Thanks for your reply!

I'm not using a module - I'm trying to achieve this without using modules so I'm not depending on them and can use the same events for other tracking systems eg. Analytics

Re: Facebook Pixel with GTM

Guess it's not possible then...

Re: Facebook Pixel with GTM

Hi @TONZR,

 

The proper way should be using a module (custom or from a 3rd-party).

Maybe you could explore the marketplace to pick the best option for you: https://marketplace.magento.com/catalogsearch/result/?q=facebook%20pixel#q=facebook%20pixel&idx=m2_c...