Move from Google Analytics to Checkend
On a standard property, the data retention setting (2 or 14 months) applies to explorations and funnel reports, not to the standard aggregated reports.
Run both for a period
Section titled “Run both for a period”You can put both scripts on your site for some weeks. Then compare the numbers before you remove Google Analytics.
Expect different numbers:
- Google Analytics distinguishes users with the
_gacookie, which lasts 2 years by default. Checkend gives a visitor a new number each day. - A person who returns on three days counts as three visitors in Checkend, in a longer period.
- Google Analytics can withhold rows in reports with demographic or search query data when there are not enough users.
- Checkend does not count some visits, for example bots that it recognizes. See Visits that are not counted.
Replace the script
Section titled “Replace the script”- Add the site in Checkend.
- Add the Checkend snippet to the
<head>of every page, as Install the analytics script shows. - Convert your Google Analytics events, as Convert the events shows.
- Remove Google Analytics with gtag.js or with Google Tag Manager, as the next sections show.
- Deploy your site.
- Open your site.
- Open the dashboard of the site in Checkend and select the period realtime. Your visit shows there.
Remove gtag.js
Section titled “Remove gtag.js”- Replace or remove each
gtag()call in your code. - Find the Google tag in the
<head>of your pages. It has a script fromwww.googletagmanager.comand a script that definesgtag(). - Remove both scripts.
Remove the tags in Google Tag Manager
Section titled “Remove the tags in Google Tag Manager”Do this when Google Tag Manager loads Google Analytics. Keep the Tag Manager snippet if other tags use it.
- In Tag Manager, click Tags.
- Open a tag that sends data to Google Analytics, for example the Google tag with your measurement ID (
G-). - Click the 3-dot icon and select Pause, as Pause tags shows.
- Click Save.
- Do steps 2 to 4 again for each other Google Analytics tag.
- Click Submit, then Publish, as Publishing, versions, and approvals shows.
A paused tag does not send data. You can unpause it if you need it again.
If Tag Manager also adds the Checkend snippet, the key is not in the HTML of your home page. Verify the domain with a DNS record, as Verify the domain shows.
Convert the events
Section titled “Convert the events”There are no goals to set up. An event shows with its properties when it arrives.
// Google Analyticsgtag('event', 'sign_up', { method: 'Google' });gtag('event', 'generate_lead', { lead_source: 'Trade show', value: 50, currency: 'USD' });gtag('event', 'purchase', { transaction_id: 'T_12345', value: 30.03, currency: 'USD', items: [/* … */] });
// Checkendwindow.checkend('Sign Up', { props: { method: 'Google' } });window.checkend('Generate Lead', { props: { lead_source: 'Trade show' } });window.checkend('Purchase', { props: { value: '30.03', currency: 'USD' } });- Checkend stores each value as text. The docs describe no revenue report. A purchase is an event with properties.
- Give each property one value. Leave out lists, for example
items. - Keep in the limits: 30 properties in one event, and 2,000 bytes for a property value.
- To send events before the script loads, add the queue that Send custom events shows.
The names and parameters of the Google Analytics events are in Recommended events.
Google Analytics 4 and Checkend
Section titled “Google Analytics 4 and Checkend”| Google Analytics 4 | Checkend |
|---|---|
gtag('event', 'name', { … }) |
window.checkend('Name', { props: { … } }). See Send custom events. |
| Key events, marked in Admin | No goals to set up. Each event shows when it arrives. |
| Custom dimensions for event parameters | Each event shows with its properties, with no setup. You can filter by a property. |
| UTM parameters | Checkend reads utm_source, utm_medium, utm_campaign, utm_content and utm_term. It also reads ref and source when there is no utm_source. |
| Funnels of up to 10 steps | Funnels of 2 to 8 steps from pages or events, in order and within 7 days. See Read the dashboard. |
| User explorer | No view of one person. A visitor gets a new number each day. |
| Audiences and the Google Ads link | No ad integration and no audiences. |
| BigQuery export | The HTTP API gives metrics by up to 3 dimensions. You can export the raw events as CSV or Parquet files, in the app or with the API. |
Consent and privacy
Section titled “Consent and privacy”The Checkend script sets no cookies and stores nothing in the browser. Whether you need consent depends on your site and your law. Ask your lawyer.
What an event holds lists the data that Checkend stores. Review your cookie list and your privacy policy after you remove Google Analytics.
Compare
Section titled “Compare”Compare the two tools: cookies, data retention, events, funnels and price, with links to Google’s own docs.