Middleman Google Analytics

📈 A @middleman plugin to handle generating your Google Analytics tracking code.

Digital Marketing & SEOGherkinMIT

Abstract

Middleman Google Analytics is an open-source Digital Marketing & SEO project. 📈 A @middleman plugin to handle generating your Google Analytics tracking code. extension that generates Google Analytics tracking code, and keeps your config in config.rb, where it belongs. It is built using Gherkin. The complete source code is publicly available on GitHub under the MIT License, making it a useful reference for students building a Digital Marketing & SEO mini project or final-year project.

1. Introduction

extension that generates Google Analytics tracking code, and keeps your config in config.rb, where it belongs.

2. Objective

📈 A @middleman plugin to handle generating your Google Analytics tracking code.

This project demonstrates how Gherkin can be applied to a real-world Digital Marketing & SEO problem.

4. Technology Stack

Gherkin

5. System Requirements

General requirements for this technology stack — check the README for exact versions.

  • See the project README for exact requirements
  • Git (to clone the repository)

6. Installation & Setup

git clone https://github.com/danielbayerlein/middleman-google-analytics.git
cd middleman-google-analytics
  1. Specify the dependency in your project's Gemfile:
  2. Activate the Google Analytics extension in your project's config.rb:
  3. In your layout, after your footer, call google_analytics_tag and include
gem 'middleman-google-analytics', '~> 3.0'
# config.rb
  activate :google_analytics do |ga|
    ga.tracking_id = 'UA-XXXXXXX-X' # Replace with your property ID.
  end
= google_analytics_tag
<%= google_analytics_tag %>

Full setup instructions are in the project README.

7. Future Enhancements

Suggested extensions you can add to make this your own project.

  • Export reports to Google Sheets or PDF
  • Schedule weekly automated reports
  • Add competitor comparison

8. Viva / Review Questions

Common questions examiners ask for projects in this domain.

  1. Which marketing or SEO problem does this tool solve?
  2. Which data sources or APIs does it use (Search Console, Analytics, social platforms)?
  3. Which metrics or KPIs does it report and how are they calculated?
  4. How could the output help a business make decisions?
  5. How would you schedule it to run automatically?

9. Source Code & License

This project is developed by danielbayerlein and published on GitHub under the MIT License. Please follow the license terms and credit the original author when you use or modify this code.

Want to build this as your internship project?

Work on a Digital Marketing & SEO project like this with mentor guidance, weekly reviews and an internship certificate from Training Trains, Erode — online or offline.

Apply for Digital Marketing & SEO Internship