-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Documentation][Cookbook] How to add Google Analytics script to shop? #10902
Conversation
AdamKasp
commented
Dec 4, 2019
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
License | MIT |
733d8d9
to
edd28d4
Compare
edd28d4
to
3efe542
Compare
3efe542
to
e702f5f
Compare
ce64cc8
to
e88f4e2
Compare
Adding Google Analytics by pasting the script directly into the layout template. | ||
-------------------------------------------------------------------------------- | ||
|
||
If you want to add Google Analytics by this way, you need to override the ``layout.html.twig`` in ``Resources/templates/bundles/SyliusShopBundle/``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see any Resources
directory in Sylius-Standard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to add Google Analytics by this way, you need to override the ``layout.html.twig`` in ``Resources/templates/bundles/SyliusShopBundle/``. | |
If you want to add Google Analytics by this way, you need to override the ``layout.html.twig`` in ``templates/bundles/SyliusShopBundle/layout.html.twig``. |
.. code-block:: twig | ||
|
||
{# Resources/templates/bundles/SyliusShopBundle/layout.html.twig #} | ||
{# ... #} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I copy the contents of the original layout here?
e88f4e2
to
59b4dfc
Compare
59b4dfc
to
009cfac
Compare
Thank you, Adam! 🎉 |