Title: where to implement script ?
Last modified: August 31, 2016

---

# where to implement script ?

 *  [ceriseduweb](https://wordpress.org/support/users/ceriseduweb/)
 * (@ceriseduweb)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/where-to-implement-script/)
 * Dear Support,
    I would like to implement a script to comply with EU cookies laws
   for example for G.analytics:
 *  <script type=”text/javascript”>
    tarteaucitron.user.analyticsUa = ‘UA-XXXXXXXX-
   X’; tarteaucitron.user.analyticsMore = function () { /* add here your optionnal
   ga.push() */ }; (tarteaucitron.job = tarteaucitron.job || []).push(‘analytics’);
   </script>
 *  </body>
    </html>
 * Part of this script had to be implemented in the <head.php> section which is 
   fine but I can’t figure out where to set the above part of the script.
    Which
   page includes the home <body> in that case ? There is a simple option to set 
   the GA code in the theme options but I cannot see the GA script anywhere…
 * Many thanks in advance for your help !!!
    Regards, Cerise

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

 *  [Kevin](https://wordpress.org/support/users/jx-3p/)
 * (@jx-3p)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/where-to-implement-script/#post-7450887)
 * The premium version of the theme has designated areas to place custom scripts,
   but I believe that within the free version, you’ll have to follow the steps outlined
   here.
 * [https://codex.wordpress.org/Using_Javascript](https://codex.wordpress.org/Using_Javascript)
 * Or perhaps follow this.
 * [https://wordpress.org/support/topic/include-javascript-header?replies=3](https://wordpress.org/support/topic/include-javascript-header?replies=3)
 * I’m not exceptionally well versed on the implementation of this, but it seems
   that the premium theme makes things much easier.
 *  Thread Starter [ceriseduweb](https://wordpress.org/support/users/ceriseduweb/)
 * (@ceriseduweb)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/where-to-implement-script/#post-7450895)
 * Hi Kevin,
    Thanks for your comment but yes I have Virtue premium and there is
   area to place custom css but not this type of script.
 * I need to have an insight from the Virtue developers…
 * Thank you,
    Cerise
 *  [Kevin](https://wordpress.org/support/users/jx-3p/)
 * (@jx-3p)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/where-to-implement-script/#post-7450896)
 * As a premium user, you should post here in the future to get the fastest response
   from the dev.
 * [http://www.kadencethemes.com/support-forums/forum/virtue-theme/](http://www.kadencethemes.com/support-forums/forum/virtue-theme/)
 * But knowing you have the premium version, you can place your script in Theme 
   Options> Theme Extensions and enable “Header and Footer Script output.”
 * Then go to Theme Options> Header/Footer Scripts and place your script in the 
   header.
 * Let me know if that works for you!

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin](https://wordpress.org/support/users/jx-3p/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/where-to-implement-script/#post-7450896)
 * Status: not resolved