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

Already on GitHub? Sign in to your account

Attach user agent string to request header #631

Closed
vntrace opened this Issue Aug 17, 2013 · 1 comment

Comments

Projects
None yet
2 participants

vntrace commented Aug 17, 2013

I am trying to make a __utm.gif request to google analytics.

request({
        uri: url,
        headers: {
            'user-agent': myUserAgent
        }
    }, function(){
});

My probem that is GA not recognize the browser information from the request.

How can you show me right way to attach user agent to the request header ?

Member

mmalecki commented Aug 21, 2014

Passing headers option is the correct way to attach headers to a request.

@mmalecki mmalecki closed this Aug 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment