Skip to content

Previous Page Type incorrectly stated as external when Previous Page Location is a subdomain in the same domain #1400

@tmchow

Description

@tmchow

Expected Behavior

Previous Page Type event property should be internal when the previous page location is still in the same domain.

Example:

[Amplitude] Page URL = https://my.bigcartel.biz/login
[Amplitude] Previous Page Location = https://app.bigcartel.biz/
[Amplitude] Previous Page Type =  internal

Current Behavior

Previous Page Type event property is incorrectly stating external when the previous page is still in our domain.

Example just now:

[Amplitude] Page URL = https://my.bigcartel.biz/login
[Amplitude] Previous Page Location = https://app.bigcartel.biz/
[Amplitude] Previous Page Type =  external

Comments

Should this logic depend on the setting for excludeReferrers? It's tough to not have control over what is considered "internal" vs "external" making this new Previous Page Type property not helpful.

Perhaps domains matching the excludeReferrers should mean its internal otherwise external if a referrer defined, then fallback to direct when no referrer?

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions