AllValue

中文

  • 中文
  • 繁体中文
  • English
  • 日本語

AllValue

中文

  • 中文
  • 繁体中文
  • English
  • 日本語
  • 首页
  • 产品特性
  • 解决方案

    • 经营场景

      • 国货品牌DTC出海解决方案
      • 国际版微信小程序解决方案
      • B2B解决方案
      • 品牌区域多站点解决方案
    • 运营与营销

      • 分销联盟解决方案
      • 社群营销解决方案
      • 极致移动解决方案
    • 出海国家

      • 北美出海解决方案
  • 商家服务

    • 品牌出海

      • 装修与建站服务
      • 选品指导服务
      • 中国100品牌出海计划
    • 社交营销

      • 网红营销服务
      • 北美社群营销服务
    • 广告投放

      • Google广告投放服务
      • Facebook广告投放服务
  • 套餐价格
  • 跨境学堂

    • 有料学堂

      • 有料学堂
      • 有料公开课
      • 系列专业课
    • 头条博客

      • 头条博客
      • 公司动态
    • 跨境社区

      • 跨境社区
  • 主题模板

    • 全部模板

    • 精选模板

  • 关于我们

    • 品牌故事

    • 联系我们

    • 合作伙伴

  1. 头条博客
  2. 独立站
  3. 将Google地图API密钥加上到您的模板中

将Google地图API密钥加上到您的模板中

2022-05-26 16:01:03

将Google地图API密钥加上到您的模板中

您可以将Google地图API密钥添加到您的模板中。

流程:

PC:

在Shopify后台管理中,转到在线商店模板。

寻找您要编写的模板,随后点击自定。

点击加上系统分区。

点击地图,随后点击挑选。

键入地图信息内容。在GoogleMapsAPIkey(Google地图API密钥)字段名中黏贴您的Google地图API密钥。

点击储存。

假如与Google地图服务平台的API通讯时出差错,地图便会更换为您在模板编辑软件中选定的背景图案或色调。

ios系统:

在Shopify运用中,轻触店铺。

在营销渠道一部分,轻触在线商店。

轻触管理方法模板。

寻找您要编写的模板,随后轻触自定。

轻触编写。

点击加上系统分区。

点击地图,随后点击挑选。

键入地图信息内容。在GoogleMapsAPIkey(Google地图API密钥)字段名中黏贴您的Google地图API密钥。

点击储存。

假如与Google地图服务平台的API通讯时出差错,地图便会更换为您在模板编辑软件中选定的背景图案或色调。

安卓手机系统:

在Shopify运用中,轻触店铺。

在营销渠道一部分,轻触在线商店。

轻触管理方法模板。

寻找您要编写的模板,随后轻触自定。

轻触编写。

点击加上系统分区。

点击地图,随后点击挑选。

键入地图信息内容。在GoogleMapsAPIkey(Google地图API密钥)字段名中黏贴您的Google地图API密钥。

点击储存。

假如与Google地图服务平台的API通讯时出差错,地图便会更换为您在模板编辑软件中选定的背景图案或色调。

将API访问限制限定为仅您的店铺

Google地图服务平台会提醒您限定对API的浏览。您的API密钥是地图的唯一标志符,可将其访问限制限定为仅您的网站域名,便于阻拦别人应用您的API密钥。

流程:

转至GoogleAPI凭证网页页面。

从菜单中选择您的新项目。

挑选您形成的API密钥以逐渐开展编写。

在应用软件限定下,点击HTTPreferrers(websites)(HTTP邀请人(网址)),并键入与店铺密切相关的一切网站域名,包含.myshopify.com网站域名。例如,假如您具备自定网站域名,则键入https://myCustomDomain.com/*和https://shop1.myshopify.com/*。

点击储存。

应用Google地图服务平台的代替计划方案

假如您要想在自身的站点上表明地图,但不应用Google地图服务平台的服务项目,则可以在界面上置放内嵌式地图。

嵌入式地图应用HTMLiframe,这类标识可以摆放在给予富文本编辑器键入字符串的一切网页页面或首页系统分区中。


Shopify商家官方网站全文详细信息:


AddyourGoogleMapsAPIkeytoyourtheme

YoucanaddyourGoogleMapsAPIkeytoyourtheme.

Steps:

PC:

FromyourShopifyadmin,gotoOnlineStoreThemes.

Findthethemethatyouwanttoedit,andthenclickCustomize.

ClickAddsection.

ClickMap,andthenclickSelect.

Entertheinformationforyourmap.IntheGoogleMapsAPIkeyfield,pasteyourGoogleMapsAPIkey.

ClickSave.

IfthereiseveranerrorincommunicatingwithGoogleMapsPlatformsAPIS,themapisreplacedbythebackgroundimageorcolorthatyouhavespecifiedinthethemeeditor.


iPhone:

FromtheShopifyapp,tapStore.

IntheSaleschannelssection,tapOnlineStore.

TapManagethemes.

Findthethemethatyouwanttoedit,andthentapCustomize.

TapEdit.

ClickAddsection.

ClickMap,andthenclickSelect.

Entertheinformationforyourmap.IntheGoogleMapsAPIkeyfield,pasteyourGoogleMapsAPIkey.

ClickSave.

IfthereiseveranerrorincommunicatingwithGoogleMapsPlatformsAPIS,themapisreplacedbythebackgroundimageorcolorthatyouhavespecifiedinthethemeeditor.

Android:

FromtheShopifyapp,tapStore.

IntheSaleschannelssection,tapOnlineStore.

TapManagethemes.

Findthethemethatyouwanttoedit,andthentapCustomize.

TapEdit.

ClickAddsection.

ClickMap,andthenclickSelect.

Entertheinformationforyourmap.IntheGoogleMapsAPIkeyfield,pasteyourGoogleMapsAPIkey.

ClickSave.

IfthereiseveranerrorincommunicatingwithGoogleMapsPlatformsAPIS,themapisreplacedbythebackgroundimageorcolorthatyouhavespecifiedinthethemeeditor.

RestrictAPIaccesstoonlyyourstore

GoogleMapsPlatformpromptsyoutorestrictaccesstoyourAPI.YourAPIkeyisauniqueidentifierforyourmapthatpreventsothersfromusingyourAPIkeybyrestrictingitsaccesstoonlyyourdomains.

Steps:

GototheGoogleAPIcredentialspage.

Selectyourprojectfromthemenu.

ChoosetheAPIkeythatyougeneratedtobeginediting.

UnderApplicationrestrictions,clickHTTPreferrers(websites)andenteranydomainassociatedwithyourstore,includingyour.myshopify.comdomain.Forexample,ifyouhaveacustomdomain,thenenterbothhttps://myCustomDomain.com/*andhttps://shop1.myshopify.com/*.

ClickSave.

AlternativestousingtheGoogleMapsPlatform

Ifyouwanttodisplayamaponyourwebsite,butnotusetheGoogleMapsPlatformsservices,youcanplaceanembeddedmaponyourpage.

EmbeddedmapsuseanHTMLiframewhichcanbeplacedintoanypageorhomepagesectionthatprovidesarichtextinputfield.

文章内容由来:Shopify商户官方网站


部分文章来源于网络,如有侵权,请联系 caihong@youzan.com 删除。

标签:

相关文章

  • Facebook广告被定位在哪一群人?
  • 没有网站?不要担心,亚马逊允许你去创建一个店铺
  • Pinterest在网络营销领域里扮演着重要的角色
  • 如何在facebook上做企业的推广
  • pinterest引流技巧分享

热门标签

评论

    添加优质配图将会得到更多人回答,媒体大小小于2M,建议尺寸:200x200

评论提交成功

评论有以下违规词汇

删除成功

评论

确定删除此评论吗

  • 未读列表
  • 已读列表

消息类型标题

2021-08-24 12:45

消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容

  • 产品与服务
  • 产品特性
  • 商家服务
  • 主题模板
  • 套餐价格
  • 帮助中心
  • 解决方案
  • 品牌DTC解决方案
  • B2B解决方案
  • 极致移动解决方案
  • 分销联盟解决方案
  • 北美出海解决方案
  • 关于我们
  • 品牌故事
  • 开发者中心
  • 用户协议
  • 隐私政策
  • 跨境学堂
  • 有料学堂
  • 博客头条
  • 跨境社区
  • 联系方式
  • 商家服务: 15814458155
  • 渠道专线: 15814458155
  • 市场合作: 15814458155
  • 官方账号
  • 邮箱: info@allvalue.com
  • AllValue公众号

    加入华人社群

©2024 allvalue.com Rights Reserved|浙ICP备2020040621号

  • 产品与服务

    • 产品特性

    • 商家服务

    • 主题模板

    • 套餐价格

    • 帮助中心

  • 解决方案

    • 品牌DTC解决方案

    • B2B解决方案

    • 极致移动解决方案

    • 分销联盟解决方案

    • 北美出海解决方案

  • 关于我们

    • 品牌故事

    • 开发者中心

    • 用户协议

    • 隐私政策

  • 跨境学堂

    • 有料学堂

    • 博客头条

    • 跨境社区

  • 联系方式

    商家服务: 15814458155

    渠道专线: 15814458155

    市场合作: 15814458155

  • 官方账号

    邮箱: info@allvalue.com

    • AllValue公众号

    • 加入华人社群

  • ©2024 allvalue.com Rights Reserved|浙ICP备2020040621号