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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Google Analytics Tutorial - wrong code?


Go to End


676 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?