Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Add JavaScript to all pages across solution

(0) ShareShare
ReportReport
Posted on by

Hi,

I'd like to add a piece of JavaScript to my Dynamics CRM environment.

That means, that by loading any page on my Dynamics portal, I want that JavaScript to be part of the HTML-source.

From a concept view, it's comparable to what you have to do to get Google Analytics in.

All options that I found so far by research would require me to add that custom piece of HTML to lots of different elements. But there has to be an option to modify as few elements as possible, right?

What's the best approach to do this? Would you recommend a client-side or a server-side approach?

Thanks in advance, any feedback highly appreciated!

Martin

*This post is locked for comments

  • vtn Profile Picture
    5 on at
    RE: Add JavaScript to all pages across solution

    Hi Martin, I have the same issue with adding a piece of Javascript to all pages of my Dynamics 365 application. Could you find a solution?

    Thanks,

    Toan

  • Community Member Profile Picture
    on at
    RE: Add JavaScript to all pages across solution

    I'll look into that, thanks!

  • Community Member Profile Picture
    on at
    RE: Add JavaScript to all pages across solution

    Right, I'm talking about the cloud hosted service.

    Thanks anyway!

  • stuart Profile Picture
    2,080 on at
    RE: Add JavaScript to all pages across solution

    If by 365 you mean the in the cloud hosted service then probably not. If on premise then I don't see why not. I haven't tried it myself though and it clearly would be outside of Microsoft supportability.

  • Community Member Profile Picture
    on at
    RE: Add JavaScript to all pages across solution

    I wasn't aware of that possibility, thanks!

    But is a modification at IIS level possible for Dynamics 365 at all?

  • stuart Profile Picture
    2,080 on at
    RE: Add JavaScript to all pages across solution

    If you like flying by the seat of your pants and dancing outside the 'supported' status you could always try a HTTP Response rewrite at the IIS level - eg something like www.iis.net/.../using-outbound-rules-to-add-web-analytics-tracking-code

  • Community Member Profile Picture
    on at
    RE: Add JavaScript to all pages across solution

    Thanks for the quick reply.

    Yes, it would be for the internal app.

    Is there maybe some central entity, which is used by a large number of forms, etc? So, customizing that would hopefully yield a comparable result...

  • Wayne Walton Profile Picture
    13,728 on at
    RE: Add JavaScript to all pages across solution

    Is this for the internal Dynamics app, or for an outside-facing portal?  Because for the internal app, there is definitely no way to do that across the board.  You'd need to add it to every form manually.

    For the portal, I believe you can do that by adding a footer and making that default.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans