web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Track website page whe...
Copilot Studio
Answered

Track website page when user start using the chatbot

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hi there,

 

Is possible to track which page of the website the user start using the chatbot?

 

We use custom canvas for ours bots and if anyone achieved this feature, could be kind to share in the community please.

 

Kind regards,


Fernando Silva

Categories:
  • remidyon Profile Picture
    Microsoft Employee on at

    Hi Fernando!

    I am able to track which page is a user when interacting with my bot. For that it requires injecting a little JavaScript in your website (I made it work with power page but that works with any website). I started writing an article about this. I’ll post it here as soon as I’m done writing ✍️ 

  • nikviz Profile Picture
    242 on at

    Hi @fernandosilva 

    Will this solution work for you? 
    https://powerusers.microsoft.com/t5/General/How-to-get-Current-website-from-PVA-bot/m-p/2039681#M5032 

     

    window.location.href captures the webpage url and you can then store it in a bot variable.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @remidyon ,

     

    Thanks for your reply. I'm looking forward  to read your article with all the steps to make it work without BFC.

     

    Kind regards,

     

    Fernando

  • nikviz Profile Picture
    242 on at

    Second solution in the link don't need BFC.
    You need a one line script in your custom canvas, which you can call via bot parameter

  • Verified answer
    remidyon Profile Picture
    Microsoft Employee on at

    Hi fernando,

    I finished writing my article, it is broader than just passing a variable but I think there are some interesting concepts in it. No need for bot framework, just a custom canvas with a little javascript.

    https://www.linkedin.com/pulse/secret-power-virtual-agents-r%25C3%25A9mi-dyon

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hey Remy,

     

    That's a great article. Thank you so much.

    I will try to make it to work and will let you know.

     

    Kind regards,

     

    Fernando

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @remidyon ,

     

    I tried to replicate what you did on your article, but seems like some connectors are still not available.

    I couldn't find the connector: "Create text with GPT on Azure OpenAI Service"

     

    If that is the case, how long until this connector is released?

     

    Cheers,

     

    Fernando

  • remidyon Profile Picture
    Microsoft Employee on at

    Hi @fernandosilva 

     

    The feature is being rolled out - official release date for general availability is "May 2023" so I would expect it to be available very soon for everyone (in the US at least)

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @remidyon ,

     

    None of the new features are rolled out in the UK, so can't be used over here.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 167

Last 30 days Overall leaderboard