{"id":1555,"date":"2026-03-20T10:25:42","date_gmt":"2026-03-20T10:25:42","guid":{"rendered":"https:\/\/onesystemcrm.com\/help\/?post_type=docs&#038;p=1555"},"modified":"2026-03-20T10:31:16","modified_gmt":"2026-03-20T10:31:16","password":"","slug":"workflow-action-add-to-google-analytics","status":"publish","type":"docs","link":"https:\/\/onesystemcrm.com\/help\/docs\/workflow-action-add-to-google-analytics\/","title":{"rendered":"Workflow Action &#8211; Add To Google Analytics"},"content":{"rendered":"<h2 id=\"Overview\" dir=\"ltr\" data-identifyelement=\"468\">Overview<\/h2>\n<p id=\"\" dir=\"ltr\" data-identifyelement=\"468\">The &#8220;<strong>Google Analytics<\/strong>&#8221; action allows you to fire a custom event in your Google Analytics (GA) account. This action supports Google Analytics 4 (GA4) and Universal Analytics (UA). It can be used to track specific user interactions or behaviours on your website or app in GA for better insights.<\/p>\n<h2 id=\"Action-Name\" dir=\"ltr\" data-identifyelement=\"468\">Action Name<\/h2>\n<p id=\"-2\" dir=\"ltr\" data-identifyelement=\"468\"><strong>Google Analytics<\/strong><\/p>\n<h2 id=\"Action-Description\" dir=\"ltr\" data-identifyelement=\"468\">Action Description<\/h2>\n<p id=\"-4\" dir=\"ltr\" data-identifyelement=\"468\">This action enables you to send custom events directly to Google Analytics (GA4 or UA) by specifying details like the Measurement ID, Event Name, API Secret, and Event Value.<\/p>\n<h2 id=\"Action-Details\" dir=\"ltr\" data-identifyelement=\"468\">Action Details<\/h2>\n<p dir=\"ltr\" data-identifyelement=\"468\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib fr-bordered fw-lightbox-img\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/155032467697\/original\/EPGRuaUplacZu8Hmn3TIPtOaMraBVEhRcg.png?1725821507\" data-attachment=\"[object Object]\" data-id=\"155032467697\" data-index=\"0\" \/><\/p>\n<h3 id=\"How-to-Configure\">How to Configure<\/h3>\n<ol>\n<li><strong>Action Name<\/strong>: Set the name of the action (e.g., &#8220;Add to Google Analytics&#8221;).<\/li>\n<li><strong>Action Type<\/strong>: Select either &#8220;Google Analytics 4&#8221; or &#8220;Universal Analytics&#8221; based on your setup.<\/li>\n<li><strong>Measurement ID<\/strong>: Enter the Measurement ID for your GA4 property.<\/li>\n<li dir=\"ltr\"><strong>Event Name<\/strong>: Specify the event name that will appear in GA4\/UA (e.g., &#8220;purchase&#8221;, &#8220;page_view&#8221;).\u00a0Refer here for the event naming rules by google<\/li>\n<li><strong>API Secret<\/strong>: Input the API secret from your GA4 setup to securely send event data.<\/li>\n<li dir=\"ltr\"><strong>Event Value<\/strong>: Optionally, pass a value related to the event, like revenue or clicks.<\/li>\n<\/ol>\n<table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" data-sheets-baot=\"1\" data-sheets-root=\"1\">\n<colgroup>\n<col width=\"100\" \/>\n<col width=\"506\" \/>\n<col width=\"119\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>Field Name<\/td>\n<td>Description<\/td>\n<td>Mandatory<\/td>\n<\/tr>\n<tr>\n<td>Measurement ID<\/td>\n<td>The unique ID for your Google Analytics property in GA4<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>Event Name<\/td>\n<td>The name of the event you want to trigger in GA4 or UA<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>API Secret<\/td>\n<td>A secret key generated in Google Analytics to send data securely<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>Event Value<\/td>\n<td>The value or parameter you want to pass along with the event<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"Example\" dir=\"ltr\" data-identifyelement=\"468\">Example<\/h2>\n<p>You can use this action to track when a user completes a form submission on your website by firing a &#8220;Form Submitted&#8221; event in Google Analytics. The Measurement ID will link the event to the correct property, and the API secret ensures the data is securely transmitted.<\/p>\n<h3 id=\"-1\"><\/h3>\n<h2 id=\"Suggested-Triggers\">Suggested Triggers<\/h2>\n<ul>\n<li><strong dir=\"ltr\">Form Submission<\/strong>: Trigger this action when a form on your website is submitted, sending event data to GA.<\/li>\n<li><strong dir=\"ltr\">Page Visit<\/strong>: Trigger the event when a user visits a specific page, like a product page, to track user behavior.<\/li>\n<li dir=\"ltr\"><strong dir=\"ltr\">Tag Added<\/strong>: When a user tag is added (e.g., &#8220;New Lead&#8221;), this action could send an event to GA tracking that change.<\/li>\n<li dir=\"ltr\"><strong dir=\"ltr\">Appointment Booked<\/strong>: Fire an event when a user books an appointment to track how many appointments are made through your system.<\/li>\n<li dir=\"ltr\"><strong dir=\"ltr\">Product Purchase<\/strong>: Trigger this action when a product is purchased and send relevant information to Google Analytics (e.g., purchase value).<\/li>\n<\/ul>\n<h3 id=\"-2\" dir=\"ltr\"><\/h3>\n<h2 id=\"Additional-Notes\" dir=\"ltr\">Additional Notes<\/h2>\n<ul>\n<li>Make sure that Google Analytics is correctly configured in your system before using this action.<\/li>\n<li>Events sent to Google Analytics can be used for reporting, segmentation, and marketing automation.<\/li>\n<li dir=\"ltr\">Ensure that the Measurement ID and API secret are accurate for successful event tracking.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview The &#8220;Google Analytics&#8221; action allows you to fire a custom event in your Google Analytics (GA) account. This action [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[76],"doc_tag":[],"class_list":["post-1555","docs","type-docs","status-publish","hentry","doc_category-integrations-workflow-actions"],"year_month":"2026-12","word_count":441,"total_views":"109","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"usamasaeed219","author_nicename":"usamasaeed219","author_url":"https:\/\/onesystemcrm.com\/help\/author\/usamasaeed219\/"},"doc_category_info":[{"term_name":"Integrations Workflow Actions","term_url":"https:\/\/onesystemcrm.com\/help\/docs-category\/integrations-workflow-actions\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/comments?post=1555"}],"version-history":[{"count":2,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1555\/revisions"}],"predecessor-version":[{"id":1560,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1555\/revisions\/1560"}],"wp:attachment":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/media?parent=1555"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_category?post=1555"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}