---
title: Keyword Position Tracking with Google Analytics
description: Keeping tabs on how your keywords are performing along with ones you never thought of becomes a daunting task very quickly.
image: https://blog.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Writing-Laptop-Office-Working-Photo-Blog-2520x1592.jpg
---

- [![Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)](https://www.miva.com)
- ![White X close button](https://www.miva.com/images/svg/icons/icon-x-white.svg)

- Why Choose Miva
  
    - Solutions
    - [Why Miva Simplify Complexity](https://www.miva.com/why-miva)
    - [Platform Overview A Complete Ecommerce Solution](https://www.miva.com/platform-overview)
    - [Miva Connect Real-time Native Connections](https://www.miva.com/miva-connect)
    - [Vexture AI-powered Product Discovery](https://www.miva.com/vexture)
    - [PageBuilder No-code Page Creation](https://www.miva.com/pagebuilder)
    - [MivaPay Flexible Native Payment Solution](https://www.miva.com/mivapay)
    - Business Type
    - [B2B Robust Business Tools Built-In](https://www.miva.com/b2b-ecommerce)
    - [B2C Designed for Agility](https://www.miva.com/b2c-ecommerce-platform)
    - [Hybrid B2B + B2C, All Managed Together](https://www.miva.com/b2b-dtc-ecommerce-platform)
- [Enterprise](https://www.miva.com/enterprise-ecommerce-platform)
- Resources
  
    - Community
    - [Customer Stories Case Studies and Featured Stores Built With Miva](https://www.miva.com/customer-stories)
    - [Technology Partners An Ecosystem Built for Flexibility](https://www.miva.com/partners)
    - [Agency Partners Helping You Build and Grow](https://www.miva.com/miva-agency-partners)
    - Resources
    - [Resource Center Browse Our Extensive Library](https://www.miva.com/ecommerce-strategy-resource-guides)
    - [Blog Explore Miva Insights on Ecommerce](https://blog.miva.com/)
    - [Documentation Answers for All Your Miva Questions](https://docs.miva.com/)
- [Get Pricing](https://www.miva.com/schedule-demo-admin)

[![Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)](https://www.miva.com)

- Why Choose Miva
  
    - Solutions
    - [Why Miva Simplify Complexity](https://www.miva.com/why-miva)
    - [Platform Overview A Complete Ecommerce Solution](https://www.miva.com/platform-overview)
    - [Miva Connect Real-time Native Connections](https://www.miva.com/miva-connect)
    - [Vexture AI-powered Product Discovery](https://www.miva.com/vexture)
    - [PageBuilder No-code Page Creation](https://www.miva.com/pagebuilder)
    - [MivaPay Flexible Native Payment Solution](https://www.miva.com/mivapay)
    - Business Type
    - [B2B Robust Business Tools Built-In](https://www.miva.com/b2b-ecommerce)
    - [B2C Designed for Agility](https://www.miva.com/b2c-ecommerce-platform)
    - [Hybrid B2B + B2C, All Managed Together](https://www.miva.com/b2b-dtc-ecommerce-platform)
  [![](https://www.miva.com/images/webp/apex-stat.webp)](https://www.miva.com/case-studies/apex-tools)
  
  Your Partner for Growth
  
  See how Apex Tool drove a 57% revenue lift with Miva's Vexture® solution.
- [Enterprise](https://www.miva.com/enterprise-ecommerce-platform)
- Resources
  
    - Community
    - [Customer Stories Case Studies and Featured Stores Built With Miva](https://www.miva.com/customer-stories)
    - [Technology Partners An Ecosystem Built for Flexibility](https://www.miva.com/partners)
    - [Agency Partners Helping You Build and Grow](https://www.miva.com/miva-agency-partners)
    - Resources
    - [Resource Center Browse Our Extensive Library](https://www.miva.com/ecommerce-strategy-resource-guides)
    - [Blog Explore Miva Insights on Ecommerce](https://blog.miva.com/)
    - [Documentation Answers for All Your Miva Questions](https://docs.miva.com/)

- [Get Pricing](https://www.miva.com/schedule-demo-admin)
- ![White, three-lined, menu icon.](https://www.miva.com/images/svg/icons/icon-menu.svg)

# Keyword Position Tracking with Google Analytics

By Miva | February 25, 2009

- [Ecommerce Marketing](https://blog.miva.com/tag/ecommerce-marketing)
- [Ecommerce Analytics](https://blog.miva.com/tag/ecommerce-analytics)

![Smiling man using a laptop](https://blog.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Writing-Laptop-Office-Working-Photo-Blog-2520x1592.jpg)

### Before You Read On...

See why top ecommerce brands use Miva’s no-code platform to run   
multiple stores, manage massive catalogs, and grow their revenue.

[Book a Demo of Miva](https://www.miva.com/schedule-demo-admin)

Do you ever search for the same thing and get different results in the search engines at different times? Most people who have dealt with search engine optimization know that the position of their website for a specific keyword phrase changes in the search engine results, sometimes quite often. Keeping tabs on how your keywords are performing along with ones you never thought of becomes a daunting task very quickly. Today I am going to show you how to track your position in [Google](https://blog.miva.com/make-smarter-marketing-decisions-google-analytics-ecommerce-tracking), Yahoo and Live (the search engines). Once you’ve gone through the steps I outline you will be able to see some very cool data:

- Average keyword position broken out by search engine
- Average position of landing pages
- SERPs page number sending traffic
- Keywords you are ranking for that you don’t know about.

First off a bit of a disclaimer, this utilizes [event tracking in Google Analytics](https://code.google.com/apis/analytics/docs/eventTrackerGuide.html) which is currently in beta so you may not be able to see the data yet. You can check if event tracking is enabled for your analytics account by going into your reports and clicking on Content. Right below Sight Search (assuming it is enabled), here is a screen shot:

Here is how to set this up in Miva Merchant 5.5:

1. Download the file seoposition.js (right click and choose Save Target As or Save Link As)
2. Upload the file seoposition.js to your server
3. Add the following line below your Google Analytics code: \[sourcecode language=‘html’\]\[removed\]\[removed\]\[/sourcecode\]

Note I normally put the Google Analytics code in the Footer section in Global Header & Footer so the above line should go there. Also you need to be using the new ga.js code not the old urchin.js. If you are still on urchin.js then upgrade to ga.js.

**Using the Data**

After some data has collected for 2-3 days it’s time to dig into the reports to gain some insight. Lets go over the data you will see in each of the event tracking reports and what the columns actually mean since we’ve repurposed for our own use.

**Categories Event Tracking Report**

The most valuable data in the categories event report is the category which is the search engine the visitor is coming from and avg value which is the average position of your website when someone clicked through from a SERP (Search Engine Results Page).

Here is an overview of each column in the report:

Category = Search Engine  
Total Events = Number of clicks to your site from the search engines (same in all event reports)  
Unique Events = Number of visits from the search engines (same in all event reports)  
Event Value = Ignore, it is meaningless for our purpose (same in all event reports)  
Avg Value = Average position in the search engines (same in all event reports)

**Actions Event Tracking Report**

The actions event report shows the page number you received traffic from the search engines aggregated.

You can click on the page number (action) to see landing pages (labels) by page or toggle the dimension to anything else such as keyword or country. You can also do this in the Category and Labels reports.

**Labels Event Tracking Report**

The label in Google Analytics SEO position tracking is the page name (URL) that is ranked in the search engines.

My favorite use of this report is to click on a specific label / landing page and change the dimension to Keyword (the default is action). This will show you what keywords someone found your page or in my case blog post:

**Keyword Position in Google**

Now that I’ve shown how to install on Miva Merchant and given an overview of the reports I want to share my personal favorite at the moment which is the average keyword position in Google (you can also do this for Yahoo! & Live). To generate the report start by clicking on Categories under Event Tracking, next click on the search engine of choice so I picked Google. Finally change the Dimension from Action to Keyword and voila you have the keywords, number of clicks from Google (Total Events) and average position (Avg. Value). Obviously the goal here is for the average value to be as close to one as possible since that indicates the first page.

**Proper Credit:**

I first came across this concept at [André Scholten’s blog](https://andrescholten.nl/index.php/seo-rankings-meten-met-google-analytics/) ([English version](https://yoast.com/track-seo-rankings-google-analytics/)) but found this much simpler solution by [Andy Edmonds of StomperNet LLC](https://www.stomperblog.com/) over at the Always Be Testing blog.

[Back to top](https://blog.miva.com/keyword-position-tracking-with-google-analytics#postAnchor)

### Want to read this blog offline?

No worries, download the PDF version now and enjoy your reading later...

Download PDF

![Image of Miva.](https://blog.miva.com/hubfs/Miva%2010/Miva%2010%20Email%20images/miva-logo-square.png) Miva

Miva offers a flexible and adaptable ecommerce platform that evolves with businesses and allows them to drive sales, maximize average order value, cut overhead costs, and increase revenue. Miva has been helping businesses realize their ecommerce potential for over 20 years and empowering retail, wholesale, and direct-to-consumer sellers across all industries to transform their business through ecommerce.

[Visit Website](https://www.miva.com/)

![White Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)

Powering the Next Era of Intelligent, Connected Commerce.

[Get Pricing](https://www.miva.com/schedule-demo-admin)

- [![White Facebook logo.](https://www.miva.com/images/svg/icons/icon-white-facebook.svg)](https://www.miva.com/social/facebook)
- [![White X logo.](https://www.miva.com/images/svg/icons/icon-white-x.svg)](https://www.miva.com/social/x)
- [![White LinkedIn logo.](https://www.miva.com/images/svg/icons/icon-white-linkedin.svg)](https://www.miva.com/social/linkedin)
- [![White Instagram logo.](https://www.miva.com/images/svg/icons/icon-white-instagram.svg)](https://www.miva.com/social/instagram)

![Badge displaying that Miva was named Best Ecommerce Platform in 2020 by Vendors In Partnership.](https://www.miva.com/images/badges/best-ecomm-platform-2020.webp)

- Solutions
- [Why Miva](https://www.miva.com/why-miva)
- [Platform Overview](https://www.miva.com/platform-overview)
- [Miva Connect](https://www.miva.com/miva-connect)
- [Vexture](https://www.miva.com/vexture)
- [PageBuilder](https://www.miva.com/pagebuilder)
- [MivaPay](https://www.miva.com/mivapay)
- [MultiStorefront](https://www.miva.com/miva-multistorefront)

- Business Type
- [B2B](https://www.miva.com/b2b-ecommerce)
- [B2C](https://www.miva.com/b2c-ecommerce-platform)
- [Hybrid](https://www.miva.com/b2b-dtc-ecommerce-platform)

- Community
- [Customer Stories](https://www.miva.com/customer-stories)
- [Technology Partners](https://www.miva.com/partners)
- [Agency Partners](https://www.miva.com/miva-agency-partners)
- [Forums](https://www.miva.com/forums/)

- Resources
- [Resource Center](https://www.miva.com/ecommerce-strategy-resource-guides)
- [Blog](https://blog.miva.com/)
- [Documentation](https://docs.miva.com/)
- [App Store](https://apps.miva.com/)
- [Miva Releases](https://www.miva.com/product-releases)

- Compare Miva
- [With Shopify](https://www.miva.com/miva-vs-shopify-plus)
- [With BigCommerce](https://www.miva.com/miva-vs-bigcommerce)
- [With Adobe Commerce (Magento)](https://www.miva.com/miva-vs-adobe-commerce-magento)
- [With Salesforce Commerce](https://www.miva.com/miva-vs-salesforce-commerce)

- Company
- [About](https://www.miva.com/company)
- [Leadership](https://www.miva.com/company/leadership)
- [Diversity & Inclusion](https://www.miva.com/company/diversity-inclusion)
- [Careers](https://www.miva.com/company/careers)
- [Press Center](https://www.miva.com/press/)

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay®, Camp Miva®, Miva Connect®, Vexture®, Miva, Inc. All Rights Reserved. Terms & Policies

- [Privacy Policy](https://www.miva.com/privacy)
- [Cookie Policy](https://www.miva.com/cookie-policy)
- [Job Applicants Privacy](https://www.miva.com/miva-applicant-privacy-notice)
- [Intellectual Property](https://www.miva.com/intellectualproperty)
- [Terms of Service](https://www.miva.com/pdf/SaaS_TOS.pdf)
- [Non-Compliance Policy](https://www.miva.com/miva-software-updates)

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.miva.com/keyword-position-tracking-with-google-analytics#webpage",
  "@type" : "WebPage",
  "description" : "Keeping tabs on how your keywords are performing along with ones you never thought of becomes a daunting task very quickly. ",
  "inLanguage" : "en-US",
  "isPartOf" : {
    "@id" : "https://blog.miva.com/#website"
  },
  "name" : "Keyword Position Tracking with Google Analytics",
  "url" : "https://blog.miva.com/keyword-position-tracking-with-google-analytics"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://www.miva.com/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.miva.com/",
    "name" : "Blog",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.miva.com/keyword-position-tracking-with-google-analytics",
    "name" : "Keyword Position Tracking with Google Analytics",
    "position" : 3
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Miva",
    "url" : "https://blog.miva.com/author/miva"
  },
  "dateModified" : "1635886872981",
  "datePublished" : "2009-02-25 00:00:00",
  "description" : "Keeping tabs on how your keywords are performing along with ones you never thought of becomes a daunting task very quickly. ",
  "headline" : "Keyword Position Tracking with Google Analytics",
  "image" : {
    "@type" : "ImageObject",
    "height" : 630,
    "url" : "https://go.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Writing-Laptop-Office-Working-Photo-Blog-2520x1592.jpg",
    "width" : 1200
  },
  "mainEntityOfPage" : {
    "@id" : "https://blog.miva.com/keyword-position-tracking-with-google-analytics#webpage",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "https://www.miva.com/images/new-images/mivainc-logo.png",
      "width" : 300
    },
    "name" : "Miva",
    "url" : "https://www.miva.com/"
  },
  "url" : "https://blog.miva.com/keyword-position-tracking-with-google-analytics"
}
```