Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Google Analytics Tutorial - wrong code?


Go to End


545 Views

Avatar
Lemonie

Community Member, 70 Posts

23 May 2012 at 8:57pm

I have been following this tutorial ...

http://www.ssbits.com/tutorials/2010/quick-and-easy-google-analytics-with-siteconfig/

After following all the instructions I get the following error after flushing.

Parse error: syntax error, unexpected $end in /var/sites/h/homelesshounds.org.uk/public_html/GoogleAnalytics/Code/GoogleAnalyticsExtender.php on line 28

I removed the last '}' and it said the same but 'on line 27'.

Is the code wrong?