Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 94e4341

Browse files
committed
Merge pull request #480 from ins0/feature/analytics
Feature: added google analytics code
2 parents 063fb6d + efa37d8 commit 94e4341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/Application/view/layout/layout.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
</p>
135135
</div>
136136
</footer>
137-
137+
<?php $this->inlineScript()->appendScript("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39824791-1', 'auto'); ga('send', 'pageview');"); ?>
138138
<?php $this->inlineScript()->prependFile($this->basePath('js/bootstrap.min.js')); ?>
139139
<?php $this->inlineScript()->prependFile($this->basePath('js/jquery-1.11.2.min.js')); ?>
140140
<?php echo $this->inlineScript(); ?>

0 commit comments

Comments
 (0)