Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…gerBundle into Alltricks-fix-json
  • Loading branch information
Philipp Bräutigam committed Aug 12, 2015
2 parents ae71cd3 + 6fc6535 commit 1e295ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/tagmanager.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Google Tag Manager START -->
{% if data is not null %}
<script>
dataLayer = [{ {% for key, value in data %}'{{ key }}': {{ value|json_encode|raw }}{% if loop.last %}{% else %}, {% endif %}{% endfor %} }];
dataLayer = [{{ data|json_encode|raw }}];
</script>
{% endif %}

Expand Down

0 comments on commit 1e295ce

Please sign in to comment.