Skip to content

Commit

Permalink
Merge branch 'Alltricks-fix-json'
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Bräutigam committed Aug 12, 2015
2 parents ae71cd3 + 1e295ce commit 406dc0a
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 406dc0a

Please sign in to comment.