Where to install Drip code snippet?

I want to use Drip for emails and need to add a code snippet to track every site. Where shall I do this?
I should do it in the body tag.

I haven’t found so far the place where to add the different tracking codes of FB, Google and so on…

Thank you!
Nimue

Hello,

Thank you for writing in!

You can add this code at the functions.php of your child themes.

And where can I add it, if I have no child theme. I’m not a tech person but only know how to use

Thank you!
Nimue

Hi Nimue,

Please check this guide on how to setup a child theme:

Then this guide on how to add third party script:
https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208

Hope this helps.

No sorry, it doesn’t.
The first article I have already read, but I have no clue what to do one it is installed.
The setup of the child theme is not the problem. I already had a childtheme installed but deinstalled it, because this was too confusing and I didn’t know what to do with it. I don’t know how to do css, I’m just a plain wordpress user, who knows a bit HTML and have no real tech knowledge.
I have already worked with many themes (eg. Avada, which I don’t like at all) and usually, there is an area specifically designed to add the short scripts for GA, FB pixel either in the body or header.
I totally love X theme, and this requirement is so essential. I cannot imagine, that there isn’t such a possibility in Xtheme too!

And sorry, I don’t understand how the Actions & Filters apply to adding these kind of scripts.

Thy Nimue

Hi Nimue,

Custom CSS can be added on X > Launch > Options > On the left sidebar: click CSS . Add it there.

For adding script, we need your child theme to be active. Then we will add the code on your child theme functions.php file. Something like this:

  add_action('wp_head','script_on_header');
  function script_on_header() { ?>
  
      //Add your script here. This will be added on the header
  
  <?php }

If you’re still not comfortable doing this, we do have an in-house custom development team that offer paid services, who may be able to assist. They can be contacted at pinnacle@theme.co if this is of interest to you. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

Thank you for your understanding.

Thank you for your kind offer.

But what do I do when I need to add GA code, the FB pixel and other tracking scripts.
Especially if the support time is over?
There must be another solution to this problem.
It’s not only me having these requirements.

Thank you!
Nimue

Hi there,

It’s either you’ll install 3rd party plugin that allows embedded, or use the above code. You may include all your embed and tracking code within that code.

add_action('wp_head','script_on_header');
  function script_on_header() { ?>
  
      //Scripts for facebook pixel here

      //Scripts for GA

      //Scripts of any tracking type
  
  <?php }

Thanks.