Open lexoyo opened 9 years ago
New: I have updated the code, so now you will also know when someone clicked on a link.
Hello i am interested to use Piwik, how i could integrate it with Silex?
hi @AndreaMonzini here is in french about piwik and Silex silex The idea is to create get the embed code of piwik and paste it in Silex into the "html head editor" Feel free to ask questions or to create a "widget" (basically a tutorial) as a new issue
This widget will let you track your visitors.
About Google analytics
Google Analytics lets you measure user interactions with your site, and then displays very detailed reports about how did your visitors find you, what they did on your website.
Anyway there is not a lot of alternatives for people who are not technicians of the web. See Piwik if you are able to install a PHP app online.
Google Anal tracking code in your Silex website
Create an account or use you existing google account to enter Google analytics Dashboard, then click on the
Admin
tab. Create an account and a property, which will give you a code like this one - feel free to look for a tutorial on the internetOnly the
UA-xxxxxxxx-x
should vary.Open your website in Silex, open the javascript editor (from the view menu) and paste both code anywhere there: the above code and the following code.
This code will notify Google of the pages seen by your visitors inside your Silex website. And you will also know when someone clicked on a link.
See your website's traffic report
Then publish your website online, and you will see the users data in your Google analytics dashboard. To see the links clicked by the user, look for
Events
in the sectionsReal-Time
andBehavior
.Also this video introduction to Google analytics might be useful to get started with Google analytics.