Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Add Meta Tags on page with Google Tag Manager?

I have added Tag Manager script on my page. So can I add more meta tags to my page.

I means can there will be Tag manager script and meta tags on page or from both of these I should use script or tags?

Thanks Dalvir

like image 622
Dalvir Saini Avatar asked Jan 10 '15 06:01

Dalvir Saini


People also ask

Can I add meta tag to Google Tag Manager?

If you're using Google Tag Manager to manage tags for your website, you can add your Meta Pixel to your Google Tag Manager account to measure and optimize the results of your Facebook advertising. Learn about the benefits of installing the Meta Pixel.

Does Google use meta tags?

At least for Google's web search results currently (September 2009), the answer is no. Google doesn't use the keywords meta tag in our web search ranking.


2 Answers

I assume you mean HTML meta tags like keywords, description etc.

You can add them via the tag manager by inserting a custom html/javascript tag that creates additional meta tags via js in the page header. However that will probably won't do you much good, as search engine spiders etc. will probably not pick up meta-tags that have been inserted via javascript and browsers are unlikely to respect tags that have been injected after the page started rendering.

So theoretically it'S possible, but I cannot conceive a use case where it would make sense.

like image 73
Eike Pierstorff Avatar answered Jan 01 '23 13:01

Eike Pierstorff


I use this little badboy when I need to populate meta-tags, seems to work like a wee charm.

<script>
  var m = document.createElement('meta'); 
  m.name = 'your-name'; 
  m.content = 'your-content'; 
  document.head.appendChild(m);
</script>
like image 39
Phil Duncan Avatar answered Jan 01 '23 13:01

Phil Duncan