1

Adding Google Remarketing Script tags to Drupal 7 website shows how to add a Google remarketing tag using a module. Is there a similar solution for adding a Facebook remarketing tag easily?

I would use the drupal_add_js hook if that were so easy, but the issue is that the remarketing tag also includes an <img/> element (the pixel) in a <noscript> tag, so I can't include that easily in the same hook.

1 Answer 1

1

Turned out to be very simple. All I had to do was paste the code into the <head> part of html.tpl.php from within the /templates/ folder.

4
  • Just where you want in the header tag? above all header-tag content?
    – user16289
    Commented Jun 24, 2015 at 3:56
  • 1
    I don't think it matters where in the header tag; I put it near the bottom.
    – YPCrumble
    Commented Jun 24, 2015 at 3:58
  • By "Header" you meant the head tag yes? (Just to make sure it's not a HTML5 header tag).
    – user16289
    Commented Jun 24, 2015 at 4:02
  • @benos Ah you're correct - I mean the head tag. Editing my answer.
    – YPCrumble
    Commented Jun 24, 2015 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.