> ## 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.

# Data layer collector

> Capture and analyze tracking data from your most important pages

## Overview

The Data Layer Collector is like a recording device for your website tracking. It captures all the tracking data from specific pages so you can see exactly what information is being collected from real visitors.

<img src="https://mintcdn.com/taginsight/poFMsZzsIjoQTyP7/images/livedebugger.png?fit=max&auto=format&n=poFMsZzsIjoQTyP7&q=85&s=b48729687cb1d158e71753d2e996ef1b" alt="Data Layer Collector Interface" style={{borderRadius: "8px", margin: "20px 0"}} width="2852" height="1688" data-path="images/livedebugger.png" />

<Note>
  This feature is especially useful for understanding purchase data without having to make test purchases yourself.
</Note>

## Why use the data collector?

<CardGroup cols={3}>
  <Card title="Save time & money" icon="shopping-cart">
    Analyze real purchases without making test transactions
  </Card>

  <Card title="Find issues faster" icon="bug">
    See exactly what data is being sent
  </Card>

  <Card title="Understand patterns" icon="chart-line">
    Learn from real customer behavior
  </Card>
</CardGroup>

## How it works

Think of it as a security camera for your tracking:

1. You tell it which pages to watch
2. It records all tracking activity on those pages
3. You can review the recordings later
4. Find and fix any problems you spot

## Setting up collection

### Quick start

<Steps>
  <Step title="Go to data collector">
    In Tag Insight, navigate to **Monitoring > Data Layer Collector**
  </Step>

  <Step title="Create new collection">
    Click **+ New Collection** button
  </Step>

  <Step title="Configure what to collect">
    * **Name**: Give it a clear name like "Checkout Page Monitor"
    * **Pages**: Which pages to monitor (like order confirmation)
    * **Duration**: How long to collect (usually 24 hours)
    * **Limit**: Maximum events to store (like 1000)
  </Step>

  <Step title="Start collecting">
    Turn it on and let it gather real data
  </Step>
</Steps>

### What to monitor

Focus on your most important pages:

* **Order confirmation pages** - See what purchase data looks like
* **Sign-up forms** - Check registration information
* **Key conversion pages** - Verify important actions
* **Error pages** - Understand what went wrong

## Common uses

### Understanding purchases

Instead of making test purchases, see real ones:

<Tabs>
  <Tab title="What you'll see">
    * Order details (ID, total, items)
    * Customer information (type, location)
    * Payment methods used
    * Any errors or issues
  </Tab>

  <Tab title="Why it helps">
    * No need for test credit cards
    * See real customer variations
    * Spot missing information
    * Verify calculations are correct
  </Tab>

  <Tab title="Common findings">
    * Missing order IDs
    * Wrong currency formats
    * Incomplete product details
    * Payment method variations
  </Tab>
</Tabs>

### Debugging forms

See what happens when people submit forms:

* Which fields are filled out
* What causes errors
* How long submissions take
* Success vs failure rates

### Finding patterns

Discover trends in your data:

* Most common purchase amounts
* Popular product combinations
* Peak activity times
* Unusual behaviors

## Analyzing collected data

### Viewing your data

Once collected, you can:

* **Search**: Find specific values or events
* **Filter**: Focus on certain time periods
* **Sort**: Organize by different criteria
* **Export**: Download for deeper analysis

### What to look for

<AccordionGroup>
  <Accordion title="Missing information">
    Check if important data is absent:

    * Order IDs on purchase pages
    * Product details in cart events
    * User IDs for logged-in customers
  </Accordion>

  <Accordion title="Wrong formats">
    Spot formatting issues:

    * Prices with currency symbols
    * Dates in different formats
    * IDs that don't match patterns
  </Accordion>

  <Accordion title="Unexpected values">
    Find outliers:

    * Extremely high or low prices
    * Unusual product combinations
    * Error messages you didn't expect
  </Accordion>
</AccordionGroup>

## Best practices

### Smart collection

<Steps>
  <Step title="Choose critical pages">
    Focus on pages that matter most:

    * Where money changes hands
    * Where customers convert
    * Where problems often occur
  </Step>

  <Step title="Set reasonable limits">
    * **Time**: 24-48 hours usually enough
    * **Events**: Based on your traffic
    * **Storage**: Don't collect more than needed
  </Step>

  <Step title="Review regularly">
    * Check collected data weekly
    * Look for new issues
    * Update what you monitor
  </Step>

  <Step title="Protect privacy">
    * Don't collect sensitive data
    * Use anonymization features
    * Follow privacy laws
  </Step>
</Steps>

### Collection tips

**For high-traffic sites:**

* Collect a sample (like 10% of visitors)
* Shorter time periods
* Focus on specific issues

**For important but rare events:**

* Collect everything
* Longer time periods
* Set up alerts

## Industry examples

### E-commerce

Monitor checkout pages to understand:

* What customers actually buy
* Payment preferences
* Cart abandonment reasons
* Discount code usage

### Media sites

Track content engagement:

* Which articles get read
* Video completion rates
* Subscription conversions
* Share patterns

### B2B websites

Analyze lead generation:

* Form completion rates
* Information quality
* Source tracking
* Demo requests

## Privacy and security

### Automatic protection

Tag Insight automatically protects sensitive data:

* Email addresses are partially hidden
* Credit card numbers are masked
* Personal details are anonymized
* IP addresses are truncated

### Your responsibilities

* Only collect what you need
* Follow your privacy policy
* Delete data when done
* Limit access to authorized users

## Troubleshooting

<AccordionGroup>
  <Accordion title="No data appearing">
    Check:

    * Is Tag Insight installed on those pages?
    * Are the page URLs correct?
    * Is the collection still active?
    * Are people visiting those pages?
  </Accordion>

  <Accordion title="Too much data">
    Try:

    * Collecting a smaller sample
    * Focusing on specific pages
    * Shorter collection periods
    * Filtering specific events only
  </Accordion>

  <Accordion title="Missing expected information">
    Verify:

    * The data exists on the page
    * It's being tracked correctly
    * No conditions preventing capture
    * Different scenarios and users
  </Accordion>
</AccordionGroup>

## Using your findings

### Create action items

When you find issues:

1. Document what's wrong
2. Show examples from real data
3. Explain the business impact
4. Share with your tech team

### Verify fixes

After changes are made:

1. Set up new collection
2. Monitor the same pages
3. Confirm issues are resolved
4. Document the improvement

### Share insights

Use collected data to:

* Show stakeholders real examples
* Justify tracking improvements
* Train team members
* Build better processes

## Export and reporting

### Export options

<Tabs>
  <Tab title="Excel/CSV">
    Best for:

    * Creating reports
    * Sharing with non-technical teams
    * Building charts
    * Further analysis
  </Tab>

  <Tab title="Raw data">
    Good for:

    * Technical team debugging
    * Detailed investigation
    * System integration
    * Archive purposes
  </Tab>
</Tabs>

### What to include in reports

* Summary of findings
* Specific examples
* Business impact
* Recommended fixes
* Timeline for resolution

## Working with your team

### For marketing

* Identify what data you need
* Explain why it matters
* Review findings together
* Prioritize fixes

### For developers

* Share specific examples
* Provide clear reproduction steps
* Test fixes together
* Confirm resolution

## Next steps

<CardGroup cols={2}>
  <Card title="Set up monitoring" icon="magnifying-glass" href="/monitoring/setting-up-audits">
    Configure automatic tracking checks
  </Card>

  <Card title="Read audit reports" icon="chart-bar" href="/monitoring/audit-reports">
    Understand your tracking health
  </Card>

  <Card title="Configure alerts" icon="bell" href="/monitoring/alerts">
    Get notified of issues
  </Card>

  <Card title="View live data" icon="eye" href="/tools/live-debugger">
    See tracking in real-time
  </Card>
</CardGroup>
