Skip to content

window.sa_pageview does not register UTM parameters #56

@adriaandotcom

Description

@adriaandotcom

We’re using the following (pseudo) code to manually send pageviews to Simple Analytics. This allows us to group them later in AWS Glue:

<script>
function saLoaded() {
  let hash = '/sa/1/1/1/1?utm_source=5';
  if (window.sa_pageview) window.sa_pageview(hash);
}
</script>

However, the utm_source (and other UTM parameters) are not being registered. When we export data from https://dashboard.simpleanalytics.com/export and include path, path_and_query, and all UTM fields, we get:

path path_and_query utm_campaign utm_content utm_medium utm_source utm_term
/sa/1/1/1/1 /sa/1/1/1/1          
/sa/1/1/1/1 /sa/1/1/1/1          

Expected: utm_source (and other UTM fields) should be parsed and included in the export.

https://support.simpleanalytics.com/#ticket/zoom/54489

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions