projects / org / ezpublishlegacy / ezpublish-analyticsbundle
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
ezpublish-AnalyticsBundle | eZ Publish Legacy | stable |
Version | Compatible with |
---|---|
N/A | N/A |
A Bundle for eZPublish 5.x which integrates Google Analytics to your site.
It uses analytics.js from Google's Universal Analytics.
This bundle is intended as a boilerplate. It will enable the very basics of google analytics tracking, and gives you a template for extending it to use with your own eZ Platform.
# ezpublish/Resources/eZDemoBundle/views/page_footer_script.html.twig
{% block google_meta %}
{{ render_esi( controller( 'GazAnalyticsBundle:GoogleAnalytics:googleAnalytics' ) ) }}
{% endblock %}
$this->get( 'gaz_analytics.tracking_information' )
->setTrackingDataForCurrentPage( $location, $content );