Skip to content

custom domains in tracking script #191

@net47

Description

@net47

Currently (at least what I see) the tracking script uses the base domain for every website to be tracked.

.env file:

# Domain and URL Configuration
DOMAIN_NAME=rybbit.mydomain.com
BASE_URL="https://${DOMAIN_NAME}"

It would be great if this could be dynamic, so that tracking for website example.com would allow to use metrics.example.com even if the Rybbit base domain is still rybbit.mydomain.com. Off course, admins would have to make sure that traffic to metrics.example.com would then reach rybbit.mydomain.com using CNAME records, load balancers, etc...

Currently, you have to use for every website:

<script
    src="https://rybbit.mydomain.com/api/script.js"
    data-site-id="XYZ"
    defer
></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions