开发者

SfGoogleAnalytic Plugin Usage

I have downloaded sfGoogleAn开发者_运维知识库alyticsPlugin to my plgin directory and do all of its settigs.Now i want to implement this to one of my page.How i use it, to view my site analytic result to my page.

I need a code example.

Anybody knows please help.Help is highly appreciated.

companion


sfGoogleAnalyticsPlugin only inserts the javascript code to load GA, it doesn't give you access to analytics results - you need to log into Google Analytics for that. If you've set up your app.yml and filters.yml as explained in the README file, then the code should be automatically inserted into the bottom of every output page, and you don't need to do anything else.

If you want to embed analytics data onto your site (like, how many visitors you have), then sorry, there aren't any existing Symfony plugins that do this. You'll need to use the Google Analytics API, which uses the GData standard (based on Atom). Zend Framework includes classes to make calls to GData services and getting to ZF in Symfony is straightforward.

I had more helpful links, but StackOverflow's restricting me to only two, so sorry!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜