Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8772669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:05:31+00:00 2026-06-13T18:05:31+00:00

To run analytics javascript on every salesforce page I want to insert Javascript in

  • 0

To run analytics javascript on every salesforce page I want to insert Javascript in every page.

So far I read about a couple of different methods:

home page component

  • a HTML Home page component (need to customize UI to show the components on every page)
  • limitations: does not work for Chatter, Reports and Setup
  • possible issue: these comments indicate problems with ‘winter 13’

Custom Button with Javascript

  • (don’t know much about this yet) sound like one has to create/assign the buttons to object-types)

Custom APEX controller?

How would this work?

Visualforce page ??

How would this work?
To my understanding it would be possible to replace everything with visualforce pages, but this is obviously not very elegant/maintainable.

I’m curious to see what other methods there are, in partciular by modifying the controller?
What other things to consider (downsides, risks) with the presented methods?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:05:33+00:00Added an answer on June 13, 2026 at 6:05 pm

    Sidebar component sounds best suited for that to be honest.

    Any button/link you’ll add to object detail pages will both require clicking on it(!) and won’t work on “tab view”, “new record” or “edit” pages. You could override most of them with VF pages but that’s A LOT of work and there’s no way you’ll be able to customize UI of these special places: Chatter, Console tab, Reports,Dashboard.
    I’m not sure what do you mean by “modifying the controller”, there’s no such global thing you’d have access to.

    There’s option of embedding a small VF page into page layout of every detail page but it’s equally limited in terms of maintenance and not being present on the new/edit pages.

    There are better analytics options for Force.com Sites (not the least of them being the <site:googleAnalyticsTracking/> tag). You should also receive a monthly newsletter (typically with 2-3 month’s delay) summarizing usage of your Salesforce instance, user adoption, areas to explore etc. If you don’t – check your User’s “receive salesforce newsletter” etc settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is about getting an analytics script to run in one of these
I run the following command to link the different files in my project. /opt/gcc-4.7-cilkplus/bin/gcc
I run this code here <html> <script type=text/javascript src=lib/jquery-ui-1.8.21.custom.min.js></script> <script src=http://127.0.0.1:5984/_utils/script/jquery.couch.js></script> <!--<script type=text/javascript src=lib/jquery-1.7.2.js></script>-->
For example, when doing Analytics, there can be a map/reduce run that takes 10
Google analytics posted on their blog about an example Java program to extract data
In trying to implement the Google Analytics SDK for iOS, I've run into two
I want to push a javascript variable into an array. Specifically, I want to
I want to get a count of number of user has disable javascript in
I need to run a function every time the application switches URLs in Backbone.js,
I want to know about the efficiency of Java and the advantages and disadvantages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.