Is there any way to pass parameters when installing Chrome Extensions?

814 views
Skip to first unread message

Patrick Nogueira

unread,
Aug 24, 2014, 9:36:43 AM8/24/14
to chromium-...@chromium.org
I have a Chrome Extension that creates a UNIQUE ID for each user who install it.
This ID have a prefix that I would like to customize depending from where the user install my extension

Example, if the user comes to my page from google search I would like to pass a prefix 800 to this user if he install the extension
If the user comes from facebook I would like to pass a prefix 700.

Is there any way from my page to inside my extension? Today I use inline install.

Thank you.

Aminadav

unread,
Aug 24, 2014, 9:56:04 AM8/24/14
to Patrick Nogueira, chromium-...@chromium.org
You can create a page on your server for example:

This page, will create a cookie, and redirect to your chrome web store item:

Your extension, will make an AJAX request to your page, to see the cookie on your server.


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/9c4edbb8-a931-4986-be59-760f2814f5b7%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Patrick Nogueira

unread,
Aug 24, 2014, 10:07:06 AM8/24/14
to chromium-...@chromium.org, patr...@gmail.com
That's a really good IDEA Amina

Thank you very much :D


Em domingo, 24 de agosto de 2014 10h56min04s UTC-3, Amina escreveu:
You can create a page on your server for example:

This page, will create a cookie, and redirect to your chrome web store item:

Your extension, will make an AJAX request to your page, to see the cookie on your server.
On Sun, Aug 24, 2014 at 4:36 PM, Patrick Nogueira <patr...@gmail.com> wrote:
I have a Chrome Extension that creates a UNIQUE ID for each user who install it.
This ID have a prefix that I would like to customize depending from where the user install my extension

Example, if the user comes to my page from google search I would like to pass a prefix 800 to this user if he install the extension
If the user comes from facebook I would like to pass a prefix 700.

Is there any way from my page to inside my extension? Today I use inline install.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
Reply all
Reply to author
Forward
0 new messages