• Resolved biznext

    (@biznext)


    Hi,

    When someone click on a link on an AMP page, the referrer is not our domain, but the ampproject.

    I mean, the site owner who get traffic from my site, don’t see my domain but the amp domain.

    For example, if my site is mysite.com,
    the all clicks on links send the referrer mysite-com.cdn.ampproject.org.

    This is problematic because the site owner who I send him the link, didn’t see my real domain.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @biznext,

    The URL that you may first encounter when being served from organic search is an AMP Cache URL. This is normal for AMP cache links. Any subsequent clicks within your site should revert to your origin domain.

    It’s possible to setup a signed exchange in order to display your origin domain. If you’re using a service such as Cloudflare you can apply this within your configurations.

    There is also a GitHub issue in relation to opting out of AMP cache. You’ll find more on this below:
    https://github.com/ampproject/amp-wp/issues/5378

    Thread Starter biznext

    (@biznext)

    Hi,

    I am using the CloudFlare real URL – https://www.cloudflare.com/website-optimization/amp-real-url/

    But this isn’t help.

    The user on my site see the real URL.

    However, when he click on the link – the site owner of that link didn’t see the real URL, but the amp project.

    I understand. In that case have you reached out to Cloudflare and enquired about enabling the Signed Exchange option? By following the steps in the below guide you may be able to enabled this yourself:
    https://blog.cloudflare.com/automatic-signed-exchanges/

    Unfortunately how your site URLs are delivered from AMP cache cannot be modified by the plugin. If there are changes to AMP upstream to allow for opting out of AMP cache we can then add configurations to the AMP plugin. You can keep watch of the below GitHub issue for any developments on this:
    https://github.com/ampproject/amp-wp/issues/5378

    Thread Starter biznext

    (@biznext)

    Hi @jamesosborne

    I don’t think it related to Cloudflare.

    I want to send my domain as a referrer but no the AMP project domain.

    So site owners can understand that the users came from my site.

    I just want to send my domain as a referrer – the same as it done when users came from non-AMP pages

    Thanks for the update @biznext. While you would like to list your own domain as the referrer when served from AMP cache this isn’t something that can be controlled from the AMP plugin.

    Cloudflare does have a Signed Exchange to account for AMP cache URLs displaying the origin domain. Unfortunately you’ll need to use the resource previously provided to find out more and configure your signed exchange.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change the referrer?’ is closed to new replies.