> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taginsight.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Event library

> Create and share standard tracking templates across your organization

## Overview

The Event Library is like a recipe book for your tracking. Instead of creating the same tracking events over and over, you can save them as templates and reuse them across all your websites and projects.

<Note>
  Think of the Event Library as your company's tracking standards - ensuring everyone tracks things the same way.
</Note>

## Why use an event library?

<img src="https://mintcdn.com/taginsight/poFMsZzsIjoQTyP7/images/10_event_library_browser@2x.png?fit=max&auto=format&n=poFMsZzsIjoQTyP7&q=85&s=8756582aa35e314ea9021142a9b3d22c" alt="Event Library Browser" style={{borderRadius: "8px", margin: "20px 0"}} width="2338" height="1680" data-path="images/10_event_library_browser@2x.png" />

### The problem it solves

Without a library:

* Each team tracks differently
* Same events have different names
* Data doesn't match across sites
* Updates are time-consuming
* Quality varies widely

With a library:

* Everyone uses the same templates
* Consistent naming everywhere
* Data matches perfectly
* Update once, apply everywhere
* Proven quality standards

## How the library works

### Two levels of libraries

<Tabs>
  <Tab title="Company library">
    **Shared across everything**

    * Standards for the whole company
    * Core events everyone uses
    * Approved by leadership
    * Managed centrally

    Example: All brands use the same "purchase" event template
  </Tab>

  <Tab title="Project library">
    **Just for one project**

    * Specific to that website
    * Custom events for unique needs
    * Quick experiments
    * Local variations

    Example: Special events just for your mobile app
  </Tab>
</Tabs>

## Creating library templates

### What's in a template?

Each event template includes:

1. **Basic information**
   * Event name (like "product\_viewed")
   * Friendly name (like "Product Page View")
   * Description of when it fires
   * Category (E-commerce, User, Content, etc.)

2. **Required data**
   * What information must be collected
   * Rules for each piece of data
   * Examples of correct values

3. **Documentation**
   * When to use this event
   * Implementation notes
   * Sample data
   * Common mistakes to avoid

### Building your first template

<Steps>
  <Step title="Choose an important event">
    Start with something critical like purchases or signups
  </Step>

  <Step title="Define the basics">
    * Name it clearly (product\_viewed)
    * Describe when it happens
    * Pick a category
  </Step>

  <Step title="List required information">
    What data is essential?

    * Product ID
    * Product name
    * Price
    * Category
  </Step>

  <Step title="Add helpful details">
    * Examples of good data
    * Common errors to avoid
    * Business purpose
  </Step>

  <Step title="Save to library">
    Choose company-wide or project-specific
  </Step>
</Steps>

## Common library templates

### E-commerce templates

<CardGroup cols={2}>
  <Card title="Shopping events" icon="shopping-cart">
    * Product viewed
    * Added to cart
    * Checkout started
    * Purchase completed
    * Product reviewed
  </Card>

  <Card title="Browse events" icon="search">
    * Search performed
    * Category viewed
    * Filter applied
    * Sort changed
    * Results clicked
  </Card>
</CardGroup>

### Content templates

<CardGroup cols={2}>
  <Card title="Engagement events" icon="heart">
    * Article read
    * Video watched
    * Content shared
    * Comment posted
    * Rating given
  </Card>

  <Card title="Navigation events" icon="compass">
    * Page viewed
    * Menu clicked
    * Tab switched
    * Section scrolled
    * Link followed
  </Card>
</CardGroup>

### User templates

<CardGroup cols={2}>
  <Card title="Account events" icon="user">
    * User registered
    * Login completed
    * Profile updated
    * Password changed
    * Account deleted
  </Card>

  <Card title="Preference events" icon="sliders">
    * Settings changed
    * Notifications updated
    * Language selected
    * Theme switched
    * Consent given
  </Card>
</CardGroup>

## Using library templates

### In your tracking plan

<Steps>
  <Step title="Browse the library">
    See what templates are available
  </Step>

  <Step title="Select templates">
    Choose the ones you need
  </Step>

  <Step title="Import to your plan">
    Add them with one click
  </Step>

  <Step title="Customize if needed">
    Adjust for your specific needs
  </Step>
</Steps>

### Benefits of using templates

**Saves time**

* No need to reinvent the wheel
* Proven templates ready to use
* Faster implementation

**Improves quality**

* Best practices built in
* Common errors avoided
* Consistent data structure

**Easier maintenance**

* Update template once
* Changes apply everywhere
* Version tracking included

## Managing your library

### Organization tips

**Group by purpose**

* E-commerce events together
* User events together
* Marketing events together
* Technical events together

**Name clearly**

* Use descriptive names
* Follow naming conventions
* Include version numbers
* Add helpful prefixes

**Document everything**

* Why this event exists
* When to use it
* What data it needs
* Example implementations

### Template lifecycle

<Steps>
  <Step title="Draft stage">
    Template created but not approved
  </Step>

  <Step title="Active stage">
    Approved and ready for use
  </Step>

  <Step title="Updated stage">
    New version available
  </Step>

  <Step title="Retired stage">
    No longer recommended
  </Step>
</Steps>

## Best practices

### Do's

✅ **Start simple**

* Begin with core events
* Add complexity gradually
* Test thoroughly
* Get feedback

✅ **Be consistent**

* Use standard naming
* Follow the same structure
* Apply uniformly
* Document clearly

✅ **Think ahead**

* Plan for growth
* Consider variations
* Allow flexibility
* Version properly

### Don'ts

❌ **Avoid these mistakes**

* Creating too many templates
* Making them too complex
* Skipping documentation
* Not getting buy-in
* Ignoring feedback

## Working with your team

### Marketing's role

* Define business needs
* Review template names
* Approve event purposes
* Ensure completeness

### Developer's role

* Implement templates correctly
* Suggest technical improvements
* Report implementation issues
* Maintain consistency

### Analytics team's role

* Create initial templates
* Update based on needs
* Monitor usage
* Train others

## Industry templates

### Available starting points

Tag Insight provides pre-built templates for:

<CardGroup cols={2}>
  <Card title="Online retail" icon="store">
    Standard e-commerce events based on industry best practices
  </Card>

  <Card title="Media sites" icon="newspaper">
    Content engagement tracking for publishers
  </Card>

  <Card title="SaaS products" icon="cloud">
    User behavior and feature usage tracking
  </Card>

  <Card title="Lead generation" icon="bullseye">
    Form submissions and conversion tracking
  </Card>
</CardGroup>

### Customizing templates

Start with industry templates, then:

1. Review what's included
2. Remove what you don't need
3. Add your specific events
4. Adjust naming to match your style
5. Test with real scenarios

## Common questions

<AccordionGroup>
  <Accordion title="Who should manage the library?">
    Typically a shared responsibility:

    * Analytics team creates templates
    * Marketing reviews and approves
    * Developers implement
    * All teams provide feedback
  </Accordion>

  <Accordion title="How many templates do we need?">
    Start with 10-20 core events. Most businesses need:

    * 5-10 user events
    * 5-10 commerce events
    * 5-10 content events
    * Some custom events
  </Accordion>

  <Accordion title="Can we change templates later?">
    Yes, but carefully:

    * Version your changes
    * Communicate updates
    * Test thoroughly
    * Update gradually
  </Accordion>

  <Accordion title="Should everything be a template?">
    No. Create templates for:

    * Frequently used events
    * Critical business events
    * Cross-team events
      Skip one-off or experimental events
  </Accordion>
</AccordionGroup>

## Getting started checklist

Before building your library:

* [ ] List your most important events
* [ ] Review current tracking
* [ ] Identify common patterns
* [ ] Get team alignment
* [ ] Plan governance process
* [ ] Start with 5-10 templates
* [ ] Test thoroughly
* [ ] Document everything

## Next steps

<CardGroup cols={2}>
  <Card title="Create tracking plan" icon="file-plus" href="/tracking-plans/creating-plans">
    Use templates in your plan
  </Card>

  <Card title="Import existing events" icon="file-import" href="/tracking-plans/import-methods">
    Turn current tracking into templates
  </Card>

  <Card title="Configure variables" icon="sliders" href="/tracking-plans/variable-configuration">
    Set up data rules
  </Card>

  <Card title="Best practices" icon="star" href="/best-practices/tracking-plan-design">
    Event design guide
  </Card>
</CardGroup>
