-
Integrating GA4 Session Manual Term into a Query
Hey there, I’m trying to weave the Session Manual term into the following query:
SELECT * FROM
nth<span class="hljs-operator">-</span>glider<span class="hljs-number">-369017.</span>analytics_316822874.events_<span class="hljs-operator">*</span>
, UNNEST(event_params) as param WHERE event_name IN ("sr_job_application_started", "sr_job_application_continued", "sr_job_completed_application") AND param.key IN ("term", "campaign", "source", "medium", "engaged_session_count") AND _table_suffix BETWEEN format_date('%Y%m%d',date_sub(current_date(), interval 30 day)) AND format_date('%Y%m%d',date_sub(current_date(), interval 1 day));I tried slipping in “term”, but zilch, nada, nothing! Even though my UTM’s have the UTMTerm value in them.
Also, I experimented with this, but “URL” tripped me up:
SELECT URL, REGEXP_EXTRACT(url, r'utm_content=([^&]+)') AS utm_content FROM
nth<span class="hljs-operator">-</span>glider<span class="hljs-number">-369017.</span>analytics_316822874.events_<span class="hljs-operator">*</span>
CROSS JOIN UNNEST(event_params) AS param WHERE event_name IN ("sr_job_application_started", "sr_job_application_continued", "sr_job_completed_application") AND param.key IN ("term", "campaign", "source", "medium", "engaged_session_count") AND _TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)) AND FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY));
Log in to reply.