Scope query by hostname

Created on 15 May 2023, over 1 year ago
Updated 14 July 2023, over 1 year ago

Problem/Motivation

We use the same google analytics account across many sub domains, and while that is lame, should use subdirs instead, we would like to poll GA API for specific hostname.

I was wondering if you know if this is possible?

✨ Feature request
Status

Closed: works as designed

Version

4.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @trackleft2
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    Right now, the dimensions and metric can be altered on the form. Other parts of the query can be altered using custom module by subscribing to the GoogleAnalyticsCounterQueryAlterEvent. Maybe the query can be altered to request absolute URLs from GA4 and put a string contains domainname filter somehow. We have a multi-domain site where we submit the domain name as custom dimension using GTM, and we use that dimension in the Looker Studio and BigQuery reports to differentiate the pageviews. Probably with a little bit of altering the query using the event I mentioned can be done the same.
    These filtering and sorting setting is a little bit problematic to achieve on the form, so right now the only way is custom code. At least until ✨ Add GA4 dimension and metric filter possiblity to the form Postponed: needs info issue is done by somebody who can build an easy to use and valid JSform element solution for this specific use case.

  • πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

    Thank you for the feedback, I'll look into this.

Production build 0.71.5 2024