How to install AdOpt's WordPress plugin?

Important Considerations for Installing AdOpt on WordPress:

  • The AdOpt installation script should be installed in the head of the site for optimal functionality. When installed in the body, the AdOpt Cookie Banner may not function correctly or could be altered.
  • To ensure the proper functioning of the AdOpt Cookie Banner, it is best practice to give AdOpt priority over other services on your site, as AdOpt informs about the presence of other services only if loaded before them.
  • Another purpose of AdOpt is to restrict the activation of other services before consent is given (blocking Tags before consent), which should also happen in the first moments of the site loading.

What Is the Recommended Installation Method for Scripts on WordPress?

  • The official Google Tag Manager (GTM) documentation advises using a Plugin for proper configuration. In this case, the recommended Plugin is Site Kit by Google. By installing GTM through this Plugin, you will be following the recommended guidelines.

  • On the official WordPress website, the page explaining how to install GTM on your WordPress site presents another installation method: using the Plugin "Insert Headers and Footers", which allows adding and managing different custom codes on your site.

  • Another possibility is installing GTM via a Plugin.


In this tutorial, we will analyze four ways to install AdOpt on WordPress:

  1. Via Google Tag Manager;
  2. Directly in the site's code;
  3. Using a Plugin for inserting scripts;
  4. Using the AdOpt Plugin for WordPress.

1. Installation via Google Tag Manager (GTM);

If you already have GTM installed, simply follow the installation tutorial via GTM.

2. Direct Installation via Site Code:

Follow the tutorial on how to find the installation code and insert it directly into the

header.php
file of your site’s template.

3. Installation via Plugin for Inserting Scripts:

We recommend using the WP plugin Insert Headers and Footers. Just follow the tutorial for installation via Script Insertion Plugin**.

4. Installation Using the AdOpt Plugin for WordPress:

  1. Go to the WordPress plugin store and download the AdOpt plugin for WP.

  2. Install the AdOpt Plugin on your WP site and activate it.

  3. If you haven't created an account on the AdOpt website yet, create one here.

  4. In the menu of your Organization within AdOpt, find the Disclaimer that contains the URL(s) you want to install. If you haven't created your Disclaimer yet, follow the tutorial on how to create your Disclaimer.

  5. After creating a Disclaimer, follow this tutorial to find your Discalimer's ID or find it in your AdOpt dashboard, click on the gear icon, and select Copy Disclaimer ID.

adopt_wordpress_plugin-01-att.png
6. Go back to your WP-Admin. In the lower-left side menu, go to settings and click on AdOpt.

Como_instalar_a_Ad_Opt_no_Word_Press-02-att.png
7. Paste the Disclaimer ID into the designated field and click Save.

Como_instalar_a_Ad_Opt_no_Word_Press-03-att.png
8. Done! AdOpt is now installed on your site.

adopt_wordpress_plugin-04-att.png

Cache Plugins (e.g., WP Rocket)

Some cache Plugins may block AdOpt from functioning properly. If your site uses Rocket or a similar Plugin, follow the steps below to allow our script to work on your site. Don't worry, the AdOpt Tag is very fast and will not slow down your site!

  1. In Rocket, access to the file optimization screen.

Como_instalar_a_Ad_Opt_no_Word_Press-05-att.png
2. In the lower section, "Excluded JavaScript Files," enter the following URL in the text field:

tag.goadopt.io/injector.js

3. Save and clear the cache.
4. Done! The AdOpt Tag will work normally on your site!

WP Consent API

Our CMP's WordPress plugin (AdOpt) is integrated with WordPress's official WP Consent API plugin.
This integration allows consent to be automatically synchronized between the two tools, ensuring compliance and simplicity in cookie management.

The mapping of AdOpt categories to the WP Consent API occurs as follows:

necessary → functional
functional → preferences
performance → preferences
marketing → marketing
statistics → anonymous-statistics
statistics → statistics

Logo
Address: 7345 W Sand Lake Road, Ste 210 Office 5898 Orlando, FL 32819
EIN: 86-3965064
Phone: +1 (407) 768-3792

AdOpt

Resources

Legal Terms

© GO ADOPT, LLC since 2020 • Made by people who love

🍪