S
S
Sergey2019-10-12 12:16:05
Google
Sergey, 2019-10-12 12:16:05

How to change embed api headers?

Hello, I've been suffering for 4 hours, I can not solve the problem. How to change headers?
From this: 5da197e84b092237197705.png
To do this: 5da197fc142ae312258346.png
Here is the code:

var activeUsers = new gapi.analytics.ext.ActiveUsers({
    container: 'active-users-container',
    pollingInterval: 5
  });

Here is a link to the documentation , I already learned everything by heart.
PS I tried to change something like this
document.body.innerHTML = document.body.innerHTML.replace('hello', 'hi');

Everything crashes right away.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question