Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi, Would it be possible to have the ability to set the [site_name] to be used when generating a GA Login?
My actual site name is rather larger, therefore I'd like to use a shorter name. (such as my domain name)
I realize this would break any old codes already setup. This is a for a new setup, therefore it's not an issue.
Even having the ability to set this is in the settings.php file like the ga_login_textid would work for me!
Thanks
Comment | File | Size | Author |
---|---|---|---|
#2 | add-custom-site-name-variable-1922636-2.patch | 1014 bytes | Devin Carlson |
Comments
Comment #1
attiks CreditAttribution: attiks commentedsee #1649128-2: add custom account name text-tag to differentiate GA accounts across staging sites, but there's no UI for it.
You can use
drush vset ga_login_textid 'MyTeXtId'
or change your settings.php fileComment #2
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to add a separate variable for the site name which defaults to the current
site_name
(for backwards-compatibility).This is useful if you've got a long site name (that can't be changed, as it is used elsewhere) which makes GA Login usernames unwieldy. For example, your site name is University of Ontario Institute of Technology, which can be nicely represented as devin@uoit instead of devin@University of Ontario Institute of Technology.
Using something other than the site name can also be helpful if you're using the Variable module which allows the site name to be translated. It prevents users who are using different languages from having different logins.
Comment #3
attiks CreditAttribution: attiks commented@Devin Carlson #2 looks good, but it would be better if we had an admin form to handle those two variables, can you build one?
Comment #4
attiks CreditAttribution: attiks commentedComment #5
attiks CreditAttribution: attiks commentedAdmin UI added as well