Stay organized with collections
Save and categorize content based on your preferences.
You can share any deployment of your Community Connector with a link. When a
user follows the link, it will take them directly to Looker Studio with your
connector selected.
To get a direct link for your community connector, follow these steps:
Navigate to Apps Scripts and open the project of the Community
Connector to share. Click Deploy > Manage Deployments.
Click the Active deployment to share. Under Looker Studio Add-on URL, a
direct link to Looker Studio for the selected deployment is displayed, click
Copy. Alternatively, under Deployment ID click Copy and append the
copied Deployment ID to the following URL to form a direct link:
The direct link can be shared with users. For example, send it via email,
post it on a website, blog, social media, etc.
Preconfigure a direct link
If you know the configuration values that your users will want ahead of time,
you can provide additional query parameters to pre-populate the connector
configuration. The pre-populated configuration can still be modified by users.
Create a preconfigured direct Link
To create a preconfigured direct link, add the following optional query
parameters:
connectorConfig - A URL encoded JSON string containing key-value pairs to
use to pre-populate the connector configuration.
Key names must match the parameter names defined in the
connector config.
TEXTINPUT, TEXTAREA, and SELECT_SINGLE values should be strings.
CHECKBOX values should be a boolean.
SELECT_MULTIPLE values should be an array of strings.
reportTemplateId - An identifier for the default reporting template to use
for the connector. If a default template is set in the connector manifest,
this value will override the manifest. See
How To Add The Report Template for the value to use.
Example
The following example illustrates how to create a direct link to the
StackOverflow Questions community connector. The direct link
pre-populates the connector configuration to use the looker-studio tag on
Stack Overflow.
Step 1: Create the config JSON
The keys for the config JSON are the names of each configuration item. For the
Stack Overflow config, these names are tagged, pagesize, and
sort.
// These variables should be filled in as necessary for your connector.varconfigJSON;vartemplateId;vardeploymentId;varparams=[];constjsonString=JSON.stringify(configJSON);constencoded=encodeURIComponent(jsonString);params.push('connectorConfig='+encoded);params.push('reportTemplateId='+templateId);params.push('connectorId='+deploymentId);constjoinedParams=params.join('&');constURL='https://datastudio.google.com/datasources/create?'+joinedParams;
This returns the following encoded URL, a pre-populated direct link for the
connector:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[[["\u003cp\u003eShare your Community Connector deployments using direct links, allowing users to access them within Looker Studio.\u003c/p\u003e\n"],["\u003cp\u003eGet the direct link from the Apps Script deployment settings or construct it using the Deployment ID and base URL.\u003c/p\u003e\n"],["\u003cp\u003ePre-populate connector configurations within the direct link using URL-encoded JSON to streamline the user experience.\u003c/p\u003e\n"],["\u003cp\u003eCustomize pre-populated links further by specifying a default report template ID.\u003c/p\u003e\n"]]],[],null,["You can share any deployment of your Community Connector with a link. When a\nuser follows the link, it will take them directly to Looker Studio with your\nconnector selected.\n\nTo get a direct link for your community connector, follow these steps:\n\n1. Navigate to [Apps Scripts](https://script.google.com/home) and open the project of the Community Connector to share. Click **Deploy \\\u003e Manage Deployments**.\n2. Click the *Active* deployment to share. Under *Looker Studio Add-on URL* , a direct link to Looker Studio for the selected deployment is displayed, click **Copy** . Alternatively, under *Deployment ID* click **Copy** and append the copied Deployment ID to the following URL to form a direct link: \n\n ```\n https://lookerstudio.google.com/datasources/create?connectorId=DEPLOYMENT_ID\n ```\n3. The direct link can be shared with users. For example, send it via email, post it on a website, blog, social media, etc.\n\nPreconfigure a direct link\n\nIf you know the configuration values that your users will want ahead of time,\nyou can provide additional query parameters to pre-populate the connector\nconfiguration. The pre-populated configuration can still be modified by users.\n\nCreate a preconfigured direct Link\n\nTo create a preconfigured direct link, add the following optional query\nparameters:\n\n- `connectorConfig` - A URL encoded JSON string containing key-value pairs to\n use to pre-populate the connector configuration.\n\n - Key names must match the parameter names defined in the [connector config](/looker-studio/connector/reference#getconfig).\n - `TEXTINPUT`, `TEXTAREA`, and `SELECT_SINGLE` values should be strings.\n - `CHECKBOX` values should be a boolean.\n - `SELECT_MULTIPLE` values should be an array of strings.\n- `reportTemplateId` - An identifier for the default reporting template to use\n for the connector. If a default template is set in the connector manifest,\n this value will override the manifest. See\n [How To Add The Report Template](/looker-studio/connector/report-templates#how_to_add_the_report_template_to_the_connector_manifest) for the value to use.\n\nExample\n\nThe following example illustrates how to create a direct link to the\n[StackOverflow Questions](https://github.com/googledatastudio/community-connectors/tree/master/stackoverflow-questions) community connector. The direct link\npre-populates the connector configuration to use the `looker-studio` tag on\nStack Overflow.\n| **Caution:** If a connector hasn't been authorized, then pre-populating does not work. Users will need to authorize the connector, then try the link again.\n\nStep 1: Create the config JSON\n\nThe keys for the config JSON are the names of each configuration item. For the\n[Stack Overflow config](https://github.com/googledatastudio/community-connectors/blob/c214a7a3cdfe75323502fc65628d483b8d15ec98/stackoverflow-questions/main.js#L41-L82), these names are `tagged`, `pagesize`, and\n`sort`. \n\n**JSON before encoding**\n\n {\n \"tagged\": \"looker-studio\",\n \"pagesize\": 25,\n \"sort\": \"activity\"\n }\n\nStep 2: Encode the URL\n\nAfter the configuration JSON is created, URL encode the object. An easy option\nis to use the [`encodeURIComponent`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) JavaScript function.\n\n**Encoding Url** \n\n // get a reference to the jsonConfig\n var jsonConfig;\n var encoded = encodeURIComponent(jsonConfig);\n\nThe result is the following encoded string: \n\n \"%7B%22tagged%22%3A%22looker-studio%22%2C%22pagesize%22%3A%2225%22%2C%22sort%22%3A%22activity%22%7D\"\n\nStep 3: Build the URL\n\nThe following code builds the direct link. Note that you will need your\nconnector's Deployment ID to build the URL. \ndata-studio/links.gs \n[View on GitHub](https://github.com/googleworkspace/apps-script-samples/blob/main/data-studio/links.gs) \n\n```gosu\n// These variables should be filled in as necessary for your connector.\nvar configJSON;\nvar templateId;\nvar deploymentId;\n\nvar params = [];\n\nconst jsonString = JSON.stringify(configJSON);\nconst encoded = encodeURIComponent(jsonString);\nparams.push('connectorConfig=' + encoded);\n\nparams.push('reportTemplateId=' + templateId);\n\nparams.push('connectorId=' + deploymentId);\n\nconst joinedParams = params.join('&');\nconst URL = 'https://datastudio.google.com/datasources/create?' + joinedParams;\n```\n| **Note:** The `reportTemplateId` is optional, but included in the above snippet. If you aren't using a `reportTemplateId`, remove that part of the code.\n\nThis returns the following encoded URL, a pre-populated direct link for the\nconnector: \n\n https://lookerstudio.google.com/datasources/create?connectorConfig=%7B%22tagged%22%3A%22looker-studio%22%2C%22pagesize%22%3A%2225%22%2C%22sort%22%3A%22activity%22%7D&reportTemplateId=1lR9CGfx3uyQp6oz7oAgA1rsqZViA-IQs&connectorId=AKfycbwGMj-oe532y-NEbMHo-KLUCEz0EEGOZj-3lhEgw7q65-hs-T_F9B3Qjw"]]