Skip to content

Instantly share code, notes, and snippets.

@imtapps
Created November 2, 2012 21:10
Show Gist options
  • Save imtapps/4004351 to your computer and use it in GitHub Desktop.
Save imtapps/4004351 to your computer and use it in GitHub Desktop.
Add New Relic to Google Analytics
javascript:var element1 = document.createElement('script');element1.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js';element1.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(element1);var div = document.getElementById('ID-navPanelContainer').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-reportTitle').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-headerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelTrafficSourceValueOrganicTable').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelGeoComponent').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-footerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-navToggle').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-infoMessage').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-contextDetailsPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/dkGub8mEBo6';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/iS8jp3zvAaU';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/e4sMFlvxDvx';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/gmfGNDQvRbT';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/2xI4EjXdxBU';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);var iframe1=document.createElement('iframe');iframe1.src='https://rpm.newrelic.com/public/charts/etfFx1JMIgv';iframe1.width="400";iframe1.height="250";iframe1.scrolling="no";iframe1.frameborder="no";document.getElementById('main-body').appendChild(iframe1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment