Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with GA app at the mobile timing and script #18

Open
tcolonel opened this issue Apr 26, 2017 · 1 comment
Open

Sync with GA app at the mobile timing and script #18

tcolonel opened this issue Apr 26, 2017 · 1 comment

Comments

@tcolonel
Copy link

Hello.

How I can sync GA app timing at the mobile with PHP script?

In the example I see:

$secret = 'XVQ2UIGO75XRUKJO';
$time = floor(time() / 30);
$code = "846474";

But in the GA app another timing ... And when I put code from GA app its valid. But when time is over in the GA app code still valid.

Thanks.

@andreszs
Copy link

GA will automatically sync itself to the real, correct time. You should sync your local server's clock manually. Codes might still be valid after a few seconds to compensate for network latency and other minor delay issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants