Introduction to Search Engine Marketing (SEM)
Search Engine Marketing (SEM) is the broader practice of gaining visibility and traffic from search engines through both organic (SEO) and paid (PPC) methods.
SEO vs. SEM vs. PPC:
| SEO | SEM | PPC | |
|---|---|---|---|
| Scope | Organic only | Organic + Paid | Paid only |
| Cost | Time investment | Time + Money | Cost per click |
| Speed to Results | Slow (3–6 months) | Mixed | Immediate |
| Sustainability | Long-term compounding | Mixed | Ends with budget |
| ROI | High (long-term) | High overall | Variable — depends on optimization |
---
SEM Strategy Components
1. Keyword Research
| Tool | Features |
|---|---|
| Google Keyword Planner | Free; search volume + CPC data |
| SEMrush | Competitive analysis, keyword gaps |
| Ahrefs | Backlink data + keyword difficulty |
| Answer The Public | Question-based keyword discovery |
| Google Search Console | Real queries driving your site traffic |
Keyword Intent Classification:
| Intent Type | Example Query | Best Channel |
|---|---|---|
| Informational | "what is digital marketing" | Content/Blog, SEO |
| Navigational | "Google Analytics login" | Brand Ads |
| Commercial | "best digital marketing tools" | Content + PPC |
| Transactional | "buy digital marketing course" | PPC, Shopping Ads |
2. SERP Features to Target:
---
Web Analytics
Web Analytics is the collection, measurement, analysis, and reporting of website data to understand user behavior and optimize digital performance.
Why Web Analytics Matters:
- Understand how visitors discover and interact with your website
- Identify which traffic sources drive the most conversions
- Pinpoint friction points in the user journey (high exit pages)
- Measure marketing campaign effectiveness with real data
- Enable A/B testing for evidence-based optimization decisions
---
Introduction to Social Media Metrics
Vanity Metrics vs. Actionable Metrics:
| Vanity Metric | Actionable Metric |
|---|---|
| Total followers | Follower growth rate (month-over-month) |
| Total post likes | Engagement rate (likes ÷ reach) |
| Total impressions | Reach (unique accounts) |
| Total video views | View-through rate |
| Total page visits | Pages per session + bounce rate |
Key Social Media KPIs:
- Reach: Unique accounts that saw your content
- Impressions: Total times content was displayed (includes repeat views)
- Engagement Rate: (Likes + Comments + Shares) ÷ Reach × 100
- Share of Voice: Your brand mentions vs. competitors
- Sentiment Score: Ratio of positive to negative brand mentions
---
Google Analytics (GA4)
Google Analytics 4 (GA4) is Google's free web analytics platform that tracks and reports website/app traffic, user behavior, and conversion data.
GA4 Key Report Sections:
| Report | What It Shows |
|---|---|
| Realtime | Current active users and pages being viewed |
| Acquisition | Traffic sources — channels, campaigns, keywords |
| Engagement | Pages viewed, events fired, time on site |
| Monetization | E-commerce revenue, purchase funnels |
| Retention | User retention cohorts (Day 1, 7, 30) |
| Demographics | Age, gender, location breakdown |
| Tech | Device type, browser, OS used |
---
Google Analytics Key Metrics
Audience & Traffic Metrics:
| Metric | Description |
|---|---|
| Users | Unique individuals who visited |
| New Users | First-time visitors |
| Sessions | Individual visits (resets after 30 min inactivity) |
| Sessions per User | Average number of visits per user |
Behavior & Engagement Metrics:
| Metric | Description |
|---|---|
| Bounce Rate | % leaving after viewing only 1 page |
| Engagement Rate | % of sessions considered "engaged" (GA4) |
| Pages per Session | Average depth of website visit |
| Average Session Duration | Mean time users spend per visit |
Conversion Metrics:
| Metric | Description |
|---|---|
| Conversions | Goal completions (purchases, sign-ups, form fills) |
| Conversion Rate | Conversions ÷ Sessions × 100 |
| Revenue | Total e-commerce transaction revenue |
| ROAS | Revenue ÷ Ad Spend (Google Ads linked) |
---
Google AdWords (Google Ads)
Google Ads is Google's online advertising platform enabling marketers to place ads across:
- Search Network: Text ads on Google Search results
- Display Network: Visual ads across 2M+ partner websites
- Shopping Ads: Product listings with image, price, store name
- Video Ads: YouTube pre-roll, mid-roll, and discovery ads
- App Campaigns: Automated cross-network app promotion
Google Ads + Google Analytics Integration Benefits:
- Post-click behavior analysis (what users do after clicking the ad)
- Audience sharing for remarketing campaigns
- Conversion import from GA4 into Google Ads for bidding optimization
- Full campaign cost data available within Analytics reports
---
Data Collection for Web Analytics
Primary Methods:
1. JavaScript Tracking Code (Tag-Based)
- Small JS snippet placed on every page of the website
- Fires on page load and captures user interaction data
- GA4 uses gtag.js or integrates via Google Tag Manager (GTM)
2. Google Tag Manager (GTM)
- Tag management system for deploying multiple tracking codes without developer involvement
- Event triggers: clicks, form submissions, scroll depth, video plays
- Version control and preview/debug mode before going live
- Single GTM container snippet replaces multiple individual tags
3. Server-Side Tracking
- Data sent from server directly (not via user's browser)
- Bypasses ad blockers and browser privacy restrictions
- More accurate; GDPR-compliant when configured correctly
Data Points Collected by GA4:
- Page URL, page title, referring URL source
- Browser type, device category, operating system
- Screen resolution, user language, geographic location
- User ID (if logged in for cross-device tracking)
- All events and interactions defined in tracking setup
---
Multichannel Attribution
Attribution modeling determines how credit for a conversion is distributed across multiple marketing touchpoints in the customer journey.
Attribution Models:
| Model | Credit Distribution | Best Use Case |
|---|---|---|
| Last Click | 100% to last touchpoint | Direct response campaigns |
| First Click | 100% to first touchpoint | Brand awareness measurement |
| Linear | Equal credit to all touchpoints | Balanced view of journey |
| Time Decay | More credit to recent touchpoints | Short sales cycles |
| Position-Based (U-shaped) | 40% first + 40% last + 20% middle | Balancing awareness + conversion |
| Data-Driven | ML algorithm-based allocation | Large data volume; most accurate |
---
Universal Analytics vs. GA4
| Feature | Universal Analytics (deprecated July 2023) | GA4 (current standard) |
|---|---|---|
| Tracking Model | Session-based | Event-based |
| Cross-Platform | Web only | Web + App unified |
| Privacy | Cookie-dependent | Privacy-first (user ID, signals) |
| Bounce Rate | Standard metric | Replaced by Engagement Rate |
| Machine Learning | Limited | Predictive metrics, anomaly detection |
| BigQuery Export | Paid (360 only) | Free for all |
---
Tracking Code Implementation
GA4 Setup Steps:
- Create GA4 Property in Google Analytics admin (analytics.google.com)
- Get Measurement ID (format: G-XXXXXXXXXX)
- Install via Google Tag Manager (recommended):
- Create GTM container → Add GTM snippet to website
<head>and<body> - In GTM: New Tag → Google Analytics: GA4 Configuration
- Set Measurement ID; Trigger: All Pages — Initialize
- Use Preview mode to test all events are firing correctly
- Publish container when all events verified
- Verify: Check Realtime report in GA4 for live user activity
Key GA4 Events to Track:
| Event Name | Auto-Tracked? | Business Value |
|---|---|---|
| page_view | Yes | Traffic volume analysis |
| session_start | Yes | Session-level data |
| scroll | Yes | Content engagement depth |
| click | Yes (outbound) | External link tracking |
| form_submit | Custom | Lead generation tracking |
| add_to_cart | Custom | E-commerce funnel analysis |
| purchase | Custom | Revenue and ROAS tracking |