Title: where to implement the code?
Last modified: August 21, 2016

---

# where to implement the code?

 *  Resolved [flofe](https://wordpress.org/support/users/flofe/)
 * (@flofe)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-to-implement-the-code/)
 * Hi,
 * I’ve installed the Cookie Opt In Plugin and have arranged and translated all 
   the settings accordingly. So far so good.
 * I also managed to add the code for ‘tracking’ before my google analytics code:
   <?php if (!function_exists(‘coia’) || coia(‘tracking’)) { ?> and closing with
   <?php } ?>.
 * Now I don’t know where to add:
    <?php if (!function_exists(‘coia’) || coia(‘social’)){?
   >
 * I do have a facebook fanbox on my website and I also use the ShareThis plugin.
   Do I need to apply the cookie code to both?
 * –> WHERE DO I HAVE TO ADD THE CODE LINE?
 * I would be very happy about some help!
 * THANKS, flofe
 * [http://wordpress.org/extend/plugins/cookie-opt-in/](http://wordpress.org/extend/plugins/cookie-opt-in/)

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

 *  Plugin Author [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * (@clearsite)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/where-to-implement-the-code/#post-3645180)
 * <?php if (!function_exists(‘coia’) || coia(‘social’)) { ?>
 * <?php } ?>
 * Goes around any code that would generate a social cookie.
 * If you use your own code to present Facebook Like, Google+ or Tweet This functionality,
   you place it around that.
 * If it is a plugin, you probably can use the Cookie-Opt-In plugin’s functionality
   of removing actions.
 * Please see the settings panel for that.
 *  Plugin Author [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * (@clearsite)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/where-to-implement-the-code/#post-3645201)
 * no response in 2 months, I assume the problem is resolved.

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

The topic ‘where to implement the code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cookie-opt-in_303030.svg)
 * [Cookie Opt In](https://wordpress.org/plugins/cookie-opt-in/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-opt-in/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-opt-in/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-opt-in/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-opt-in/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-opt-in/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/where-to-implement-the-code/#post-3645201)
 * Status: resolved