Analytics

Platform

Last updated

Every published Ploy site includes first-party analytics with no setup. Ploy tracks pageviews, sessions, traffic sources, scroll depth, clicks, forms and searches, and groups visits into channels, including visits from AI assistants such as ChatGPT. You ask Ploy's Agent for charts and dashboards in a chat, and you can connect GA4 and Search Console.

Ploy includes built-in analytics out of the box, with no extra setup required. For deeper insights, connect Google Analytics 4 and Google Search Console directly from the dashboard.

Limits and plan requirements

  • Built-in analytics comes with every published Ploy site. To track a site Ploy doesn't host, add the Ploy snippet. To send events from your backend, create a server-side secret key.
  • Only owners and admins can change analytics settings.
  • Ploy's analytics sets a first-party cookie named ploy_anon_id, kept for one year. When a visitor refuses cookies through window.ploy.consent("denied"), it measures them without a visitor ID cookie instead. Until your banner reports a choice, tags Ploy adds follow your site's Default consent setting unless the visitor previously refused. See Cookie consent and GDPR.
  • Forwarding to GA4, Meta Pixel and Google Ads sends browser events only, not server-side events.
  • A table card shows up to 1,000 rows.
  • Company and person details come from visitor identification, which uses enrichment credits. See Visitor Identification.

Built-in Analytics

Every published Ploy site automatically tracks:

  • Pageviews: Total and unique views per page
  • Traffic sources: where visitors come from.
    • Top Sources ranks the sites that refer visitors and leaves out clicks between pages of your own site.
    • Ask Ploy's Agent for a channel breakdown to group visits as Direct, Organic Search, AI, Social, Referral, Email, Paid Search, or Paid Social.
    • The AI channel counts visits from AI assistants such as ChatGPT, Perplexity, Claude, Gemini, and Copilot.
  • Bot visits: the Bots card on your site Overview counts AI crawlers, which collect pages for AI models, separately from Agent visits, which are AI assistants such as ChatGPT, Claude, and Perplexity opening a page for a person.
  • Top pages: Your most-visited pages ranked by traffic
  • Trends: Daily, weekly, and custom date range comparisons

Dashboards & Charts

Create custom dashboards with charts to visualize your data:

  • Line charts: Track trends over time
  • Bar charts: Compare pages or sources
  • Metric cards: Highlight key numbers (total visitors, pageviews, unique visitors)
  • Tables: Detailed breakdowns with sorting and filtering
  • Pie charts: Traffic source distribution
  • Area charts: Cumulative trends

Arrange a dashboard

Each site has a Dashboard page. Choose Create or Edit dashboard to work on it with Ploy's Agent.

  • Organize cards: ask it to add text notes, titled sections, or tabs that group related cards. For example: "Add a Paid tab with the ad spend and conversion cards, and a note explaining how we count a lead."
  • Edit notes in place: editable text blocks have a pencil button, so your team can update the notes in place.

On a large screen:

  • Open a card's settings to change its width with Resize or its size with Height (Auto height, Short, Medium, Tall, or Extra tall).
  • Text notes, sections, and tabs always fit their content, so they have no Height option.
  • Drag a card by its handle to move it.
  • Removing a section or tab group keeps its cards on the dashboard.

Filter and group a dashboard

Ask Ploy's Agent to add controls above the cards, such as:

  • grouping by day, week, or month
  • a filter for a campaign or a status
  • a search box

How controls behave:

  • Changing a control updates only the cards that use it.
  • Your choices are kept in the page address, so you can copy the link to share that view.
  • To make your choices the default for everyone, choose Save for everyone. To go back to the saved view, choose Reset.
  • A filter with several choices applies when you close it.
  • A table card shows up to 1,000 rows. When there are more, it says Showing the first 1,000 rows.

Cards can show results that were loaded recently. To load new numbers, choose Refresh. While cards load, the label next to Refresh counts them, for example Updated 3 of 25. If a card says its query ran past the time limit, ask Ploy's Agent to use a shorter date range or a simpler query.

Cards from your databases

A dashboard card can show data from a database table. Ask Ploy's Agent for:

  • totals per day, week, or month
  • the top items in a group
  • a rate that divides one total by another, such as click-through rate, cost per click, cost per acquisition, or return on ad spend. Rates are calculated from the totals for the selected date range.

One card can also:

  • combine two tables, for example ad spend and deals on the same chart
  • show a rolling average, a cohort table, or a funnel

To keep cards consistent, ask Ploy's Agent to save a shared definition, such as what counts as an active user, and reuse it on other cards. If you change a definition, Ploy's Agent tells you which cards it affects and offers to fix them.

Ask Ploy's Agent to create charts for you: "Show me a chart of pageviews over the last 30 days" or "Create a dashboard with our top pages and traffic sources."

Ploy's Agent can also show a saved chart or table in the chat. Charts in the chat have date range and filter controls you can change there.

Charts pick round axis steps on their own. To use a specific step, ask for it, for example "Show the y-axis in steps of 20."


Analytics settings: sources

Open your site, then Settings → Analytics. Only owners and admins can change these settings.

  • Hosted site: Ploy tracks your Ploy site automatically: page views, sessions, scroll depth, button and outbound clicks, forms, and searches. Use Debug to watch events arrive.
  • External sites: to track a site that Ploy does not host, choose External sites, then Set up. Create a snippet, add the domains allowed to send events, and paste the snippet on every page of that site.
  • Server-side events: to send events from your backend, choose Server-side events, then Set up. Create a secret key and send events to the track and identify endpoints shown in Instructions.

On any tracked page, record a custom event with window.ploy.track("event_name", { property: "value" }), and identify a known visitor with window.ploy.identify(...). Choose Edit in a chat to have Ploy's Agent set up tracking for you.

Built-in events

On a hosted site, Ploy records these events for you. Use their names when you choose goals or conversion events.

  • page.viewed: a page loads.
  • session.started, session.heartbeat and session.ended: a visit starts, stays active and ends.
  • page.scroll_depth_reached: a visitor scrolls to 25, 50, 75 or 90 percent of a page.
  • cta.clicked: a click on a link or button that stays on your site. Toggles such as tabs, switches and checkboxes are not counted.
  • link.outbound_clicked: a click on a link to another domain. These clicks are not counted as cta.clicked.
  • form.started and form.submitted: a visitor first types in a form, then submits it. Both carry the form's id, name and action attributes as formId, formName and formAction, never what the visitor typed. Give each form a name to tell forms apart in reports.
  • site_search.performed: a visitor submits a search form with a query.
  • experiment.exposed: a visitor sees a version of an A/B test.

Custom event names can use letters, numbers, dots, dashes and underscores, up to 64 characters. They can't start with a built-in prefix: session., page., cta., link., form., site_search. or experiment.

Send events to GA4, Meta Pixel, Google Ads, and LinkedIn

You can forward Ploy events to Google Analytics 4, the Meta Pixel, Google Ads, and the LinkedIn Insight Tag without editing code.

  • Open Settings → Analytics and choose Add next to a destination.
  • Enter its ID: a GA4 measurement ID (G-...), a Meta Pixel ID, a Google Ads conversion ID (AW-...), or a LinkedIn partner ID.
  • Turn the destination on, then choose which events to send to it.
  • The event list shows events recorded in visitors' browsers.
    • Server-side events are not listed, because these destinations run in the browser and cannot receive them.
    • Use Filter events to find an event by name.
    • If an event has not been recorded yet, add its name at the bottom of the list to route it anyway.

A destination shows one of these statuses:

  • Active when it is on and sending events.
  • Active · nothing routed when it is on with no events chosen.
  • Inactive when it is switched off.

LinkedIn Insight Tag

  1. Open Settings, then Analytics, and choose Add next to LinkedIn Insight Tag.
  2. Enter your partner ID. In LinkedIn Campaign Manager, this is usually under Measure, then Signals manager, then Insight Tag. You can add more than one.
  3. For each Ploy event you want to send, paste that event's LinkedIn conversion ID.

Good to know:

  • Partner IDs and conversion IDs use digits only, up to 15 digits, and can't start with 0.
  • The tag records a pageview for attribution when advertising consent is granted, either by the site's default or by the visitor.
  • Conversions are sent only for the events you route.
  • If a visitor withdraws consent, your cookie banner must reload the page to stop the LinkedIn tag.

Changes go live within a few minutes. You do not need to publish.

If you use a cookie banner, call window.ploy.consent("granted") when the visitor accepts analytics and advertising cookies. See Cookie consent and GDPR for how to handle refusal or separate choices.

Ploy's analytics follows your cookie banner. When a visitor refuses cookies, Ploy keeps measuring their visit without storing a visitor ID on their device. This is designed to help you meet GDPR and similar cookie consent requirements while you still see how your site performs.

Ploy does not add a cookie banner for you. You still need your own cookie banner or consent tool and your own privacy policy, and you are responsible for meeting the consent rules that apply in your region.

Connect your cookie banner

Call window.ploy.consent() from your cookie banner on every page load, as early as you can.

// The visitor accepts cookies
window.ploy.consent("granted")

// The visitor refuses cookies
window.ploy.consent("denied")
  • Ploy waits up to one second for your banner before it stores anything. Calls made before Ploy's analytics finishes loading are queued.
  • To require consent before using analytics and ad cookies on a Ploy-hosted site, open Settings, then Analytics, and turn off Default consent under Hosted site. Call window.ploy.consent() with the visitor's choice on every page load. If your banner has not reported a choice, Ploy uses the site's default unless it remembers a refusal. Call window.ploy.consent("unset") only to clear the previous choice and return to the site's default.
  • "granted" and "denied" also apply to the GA4, Meta Pixel, Google Ads, and LinkedIn Insight Tag tags Ploy adds for you. To decide measurement and advertising separately, pass an object instead, for example window.ploy.consent({ analytics: true, ads: false }). The analytics value is the one that controls Ploy's own analytics.
  • A visitor can change their mind at any time. The new choice applies from their next event and starts a new visit, so activity from before and after the change is not linked.

When a visitor accepts

Ploy sets a first-party cookie named ploy_anon_id, kept for one year, plus a matching entry in the browser's local storage. This lets Ploy:

  • recognize returning visitors
  • follow a visitor's journey across days
  • run A/B tests
  • identify the companies visiting your site

For a Ploy-hosted site, events are sent to your site's own domain. If your banner does not report a choice, Ploy uses the visitor's remembered analytics choice. If there is no remembered choice, the site's Default consent setting determines whether Ploy uses a visitor ID cookie.

When a visitor refuses

  • Ploy removes its visitor ID from the browser. The only thing it stores on the device is a cookie named ploy_consent that remembers the refusal, kept for 180 days.
  • Page views, custom events, conversions, referrers, and UTM campaign data still count.
  • A visitor's page views and events are grouped into visits, so your visit counts and engagement stay meaningful.
  • Instead of a cookie, the visitor gets an anonymous ID that resets every day. Ploy does not store their IP address, and after the reset the ID cannot be linked back to the visitor.

Some things work differently for visitors who refuse:

  • Returning visitors: a visitor who comes back on a later day counts as a new visitor.
  • Journeys over several days: visits on different days are not connected, so a conversion is credited only to activity from the same day.
  • Across sites: activity on one site is not linked to another, for example a visitor who moves from your marketing site to your app. Your site's Ploy address and its custom domain count as one site.
  • Visitor identification: the visitor is never matched to a company or a person, and window.ploy.identify() calls are ignored.
  • A/B tests: the visitor always sees the champion and is not counted in the experiment's results.

Events you send from your own backend are not affected by the visitor's choice. Your backend decides consent for those.

To stop Ploy's analytics for every visitor on a site, see Turn off Ploy analytics for a site.

Tip: list the ploy_anon_id and ploy_consent cookies in your cookie banner and privacy policy.

To turn visitor enrichment off for the whole workspace, open Settings → Enrichments and set it to Disabled. To change enrichment for one site, open that site's Visitors tab and choose Enrichment settings. See Visitor Identification for what enrichment adds.

Turn off Ploy analytics for a site

Ploy's analytics is on for every site by default. Owners and admins can turn it off for one site. Other members can see the setting but cannot change it.

  1. Open the site.
  2. In the site menu, under Settings, choose Analytics.
  3. Under Sources, find the row named after your site and choose Manage.
  4. On the Settings tab, turn off Collect analytics on this site.

When it is off:

  • Ploy adds no tracking script or cookies to the site, and removes its visitor ID from returning visitors.
  • The site's dashboards stop receiving new data.
  • A/B tests show every visitor the original version.
  • The GA4, Meta Pixel, Google Ads, and LinkedIn Insight Tag destinations you added for the site stop sending events.
  • External sites and server-side events are not affected.

The site's row under Sources then shows Off. To start collecting again, turn Collect analytics on this site back on. If a custom domain has not picked up the change yet, Ploy says so and offers Retry.


Google Analytics 4

Connect your GA4 property to query your Google Analytics data directly from Ploy.

Setup

  1. Open Integrations directly from the workspace sidebar.
  2. Search for Google Analytics and choose Connect when available.
  3. Authorize with your Google account that has access to the GA4 property.
  4. After you authorize, choose a property in the picker on the Google Analytics card.
    • If your account has only one property, Ploy selects it for you.
    • Until a property is saved, the card says Select a property to get started, and Ploy's Agent cannot query GA4.
    • To switch properties later, use the same picker on the card in Integrations or in the chat.
    • If saving fails, choose Retry setup.

What You Can Do

Once connected, ask Ploy's Agent to pull GA4 data:

  • "How many active users did we have this month?"
  • "What are our top landing pages by sessions?"
  • "Show me user acquisition by channel for the last 30 days"

Google Search Console

Connect GSC to monitor your search performance: impressions, clicks, rankings, and indexing status.

Setup

  1. Open Integrations directly from the workspace sidebar.
  2. Search for Google Search Console and choose Connect when available.
  3. Authorize with your Google account.
  4. After you authorize, choose a site in the picker on the Google Search Console card. Until a site is saved, Ploy's Agent cannot query Search Console. To switch sites later, use the same picker on the card in Integrations or in the chat. If saving fails, choose Retry setup.

What You Can Do

Once connected:

  • "What keywords are we ranking for?"
  • "Show me our top queries by clicks this month"
  • "Check if our new blog post is indexed"
  • "What's our average position for [keyword]?"

Asking Ploy's Agent About Analytics

You don't need to navigate dashboards manually. Ploy's Agent can answer analytics questions conversationally:

  • "How's our traffic trending this week vs. last week?"
  • "Which blog posts get the most organic traffic?"
  • "Create a dashboard showing pageviews, top pages, and visitor companies"
  • "What's our click-through rate on Google for our top 10 keywords?"

Check how AI answers mention you

Ask Ploy's Agent how AI tools answer the questions your customers ask. It can check answers from ChatGPT search, Gemini, Claude, Perplexity, Google AI Overviews, and Google AI Mode, and tell you whether your business is mentioned and which sites are cited. For example:

  • "Does ChatGPT or Gemini recommend us when someone asks for the best [product] in [city]?"
  • "Which sites does Google AI Mode cite for [keyword]?"

Checks run in chat and use AI credits. To track answers over time and improve your site for AI tools, see AI Search Visibility.


What's Next?