Title: Undefined offset
Last modified: October 5, 2016

---

# Undefined offset

 *  Resolved [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/)
 * Hi,
 * Great plugin, but it stopped working recently and giving the following error 
   on the scroll event page:
 * _Notice: Undefined offset: 0 in …/wp-google-analytics-events/includes/admin.php
   on line 234_
 * _Notice: Undefined variable: i in …/wp-google-analytics-events/includes/admin.
   php on line 242_
 * And the click settings page shows the same type of error:
 * _Notice: Undefined offset: 5 in …/wp-google-analytics-events/includes/admin.php
   on line 312_
 * Any idea’s what could cause these errors?

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

 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8254646)
 * Hi [@dinho78](https://wordpress.org/support/users/dinho78/),
 * These look like notifications that appear when running WordPress in debug mode.
   
   We are going to make them disappear in the next update, but I don’t think its
   the reason the plugin stopped working for you.
 * Can you please send me a link to the page where the plugin is active? I can take
   a closer look and see where the problem is.
 * Yuval
 *  Thread Starter [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8254700)
 * Hi yuvalo,
 * Thanks for your quick response. I can create an admin login for you, so you can
   take a closer look at the issue.
 * Where can I send the login details to?
 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8254733)
 * [http://wpflow.com/contact/](http://wpflow.com/contact/)
 *  Thread Starter [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8254755)
 * Thanks! I’ve just used the contact form to send the login details.:)
 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8254785)
 * Thanks but I think that the user doesn’t have enough permissions to view the 
   plugin’s options page.
 * In any case, just from opening the website itself, it doesn’t look like you have
   the Google Analytics code anywhere.
    If you are using a third party plugin to
   add it, make sure it is running, and if not, uncheck the don’t include the GA
   code snippet option. I can’t see your settings yet, but I’m pretty sure that’s
   where the problem is.
 * Yuval
 *  Thread Starter [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8255474)
 * Hi Yuvalo,
 * I’ve updated the permissions. So you should be able to take a look.
 * Unchecking the button didn’t help with the error.
 *  Thread Starter [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8270804)
 * Hi Yuvalo,
 * Have you had the opportunity to look at this? It still doesn’t work. Checking
   or unchecking the button doesn’t make a difference.
 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8270819)
 * Hi,
 * I just checked again, clicking on a tel number and I can see an event going out
   to Google Analytics.
    Can you please take a look at the real-time dashboard as
   you click a tel number?
 * Thanks,
 * Yuval
 *  Thread Starter [Dinho78](https://wordpress.org/support/users/dinho78/)
 * (@dinho78)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8283736)
 * Hey Yuval,
 * Thanks for the replies. Tried it on another site and it seems saving and re-saving
   the settings helped with getting the events working. Will inspect this a bit 
   further.
 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8305896)
 * Thanks for the update. I’m marking this topic as resolved for now.

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

The topic ‘Undefined offset’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-analytics-events/assets/icon-256x256.jpeg?rev=
   2189709)
 * [WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics](https://wordpress.org/plugins/wp-google-analytics-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-analytics-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-analytics-events/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-analytics-events/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 10 replies
 * 2 participants
 * Last reply from: [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/undefined-offset-20/#post-8305896)
 * Status: resolved