Title: 1 or 2 code placement?
Last modified: August 28, 2018

---

# 1 or 2 code placement?

 *  Resolved [runci](https://wordpress.org/support/users/runci/)
 * (@runci)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/1-or-2-code-placement/)
 * Hi!
 * I have a few questions:
 * 1.
    I use Divi and it has an area where I can put my codes into header, body,
   footer. I put my Analytics and Facebook codes here. With your plugin should I
   put here and to the plugin too? Do I have to use both or only your plugins area?
   2. If I put my codes to both areas is it gonna run twice or only 1 time? Does
   your plugin notices that these are the same codes? 3. If I have 3 codes in my
   header “A”, ‘B”, “C”. I want to forbid only “B” and “C” with the plugin so I 
   put these into the functionality cookies header area. What is gonna happen? “
   A” is gonna run every time?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Florin88](https://wordpress.org/support/users/florin88/)
 * (@florin88)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/1-or-2-code-placement/#post-10636114)
 * Hi there,
 * 1. Put the analytics code only once, in the GDPR plugin.
    2. If you put the code
   in the GDPR plug, but also in the Divi, then your code will run no matter what
   settings you have in the GDPR plugin. So don’t add the code twice. Put it in 
   the GDPR plugin only. 3. Yes, “A” will gonna run no matter the settings you have
   in the GDPR plugin. Basically, if a code is not added to the GDPR plugin, it 
   will not be affected.
 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/1-or-2-code-placement/#post-10636696)
 * Hello,
 * Thanks for using our plugin!
 * User Florin88 is perfectly right – thanks for helping to answer this support 
   query!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘1 or 2 code placement?’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/1-or-2-code-placement/#post-10636696)
 * Status: resolved