<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Slawkomay</title>
    <description>The latest articles on DEV Community by Slawkomay (@slawkomay).</description>
    <link>https://dev.to/slawkomay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F365379%2F4dabd18a-2fa7-4c97-8616-72a25050c926.png</url>
      <title>DEV Community: Slawkomay</title>
      <link>https://dev.to/slawkomay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/slawkomay"/>
    <language>en</language>
    <item>
      <title>Gridsome, pushing "Google Analytics" code</title>
      <dc:creator>Slawkomay</dc:creator>
      <pubDate>Sun, 12 Apr 2020 18:31:07 +0000</pubDate>
      <link>https://dev.to/slawkomay/gridsome-pushing-google-analytics-code-ho3</link>
      <guid>https://dev.to/slawkomay/gridsome-pushing-google-analytics-code-ho3</guid>
      <description>&lt;p&gt;I wanted to add Google Analytics on my website, Gridsome Plugin didn't work &lt;br&gt;
 &lt;a href="https://gridsome.org/plugins/@gridsome/plugin-google-analytics"&gt;plugin Google Analytics&lt;/a&gt; so I thought I can just insert this code in head / body on my page (&lt;a href="https://gridsome.org/docs/head/"&gt;https://gridsome.org/docs/head/&lt;/a&gt;), I make this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;head.script.push({
    src:'&amp;lt;script async src="https://www.googletagmanager.com/gtag/js?id=UA-151506029-2"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script&amp;gt;window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(\'js\', new Date()); gtag(\'config\', \'UA-151506029-2\');&amp;lt;/script&amp;gt;',
    body: true})
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Local is everything ok but online I got an error in HTML below footer&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;" data-body="true"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I am beginner, so I don't know what is wrong&lt;/p&gt;

</description>
      <category>help</category>
      <category>gridsome</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
