Title: getCookieValue(&#8230;) is not a function
Last modified: July 12, 2019

---

# getCookieValue(…) is not a function

 *  Resolved [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/getcookievalue-is-not-a-function/)
 * Hi
    After the last update to version v2.3.2 I´m getting this message in dev tools
   console: (index):12 Uncaught TypeError: getCookieValue(…) is not a function. 
   I think is a lack of a semicolon, this one `getCookieValue('wp_gdpr_cookie_preferences')`**;**`(
   function(i,s,o,g,r,a,m)`

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/getcookievalue-is-not-a-function/#post-11726874)
 * Could you send me a screenshot of your settings? I’m not getting this error, 
   but it might be due to some combination of settings.
 *  Thread Starter [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/getcookievalue-is-not-a-function/#post-11728292)
 * Hi
    I have solved the issue adding a semicolon in file `host-analyticsjs-local.
   php` Line 417, at the end: `cookieValue = getCookieValue('<?= CAOS_ANALYTICS_COOKIE_NAME;?
   >');`
 * Relevant settings are:
    Allow tracking… When cookie is set Cookie name “The name
   of the cookie”
 * The line 417 bellow to a snipet that is fired with these settings starting at
   line 400.
    -  This reply was modified 6 years, 11 months ago by [lofesa](https://wordpress.org/support/users/lofesa/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/getcookievalue-is-not-a-function/#post-11738852)
 * I added your fix to the last release, [@lofesa](https://wordpress.org/support/users/lofesa/).
   This must’ve snuck in with some sort of auto formatting glitch. Thanks again 
   for reporting and fixing it!

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

The topic ‘getCookieValue(…) is not a function’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/getcookievalue-is-not-a-function/#post-11738852)
 * Status: resolved