mikaelgislen
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Yoast component not showingIt is not in this case, it comes in different browsers, and even when emptying the cache it still comes. Even from different computers that has never been logged in on this site before it happens exactly the same way.
- This reply was modified 1 year, 4 months ago by mikaelgislen.
Thanks for a nice plugin! Really appreciate your effort!
If I use the code above around the google tag manager code for the header then it gives
Parse error: syntax error, unexpected ‘<‘ in /home/gislen/webapps/gislen/wp-content/themes/alpina/templates/head.php on line 28
Here is the code to put in the <head>
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-tag code’);</script>
<!– End Google Tag Manager –>OR if placed in the <body>
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-tag code”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>Also would the cookies be set once the user clicks on “Accept” or will they only be set next time?
- This reply was modified 6 years, 12 months ago by mikaelgislen.