我需要跟踪用户在我的网站上观看的嵌入式YouTube视频的数量.我需要它以25%,50%,75%和100%的视频长度发射标签.它应该像滚动页面轨道一样工作.
我对网站的唯一访问是通过Googletag管理员,所以任何解决方案都必须通过那里.
我已经研究过很多方法可以使用youtube api来做到这一点.我甚至尝试了这个循序渐进的指南:http://www.cardinalpath.com/youtube-video-tracking-with-gtm-and-ua-a-step-by-step-guide/但它没有工作.
我想问题是该网站使用fancybox播放视频.以下是网站代码的选择:
我不知道从哪里开始.
我有一个名为不同产品的列,例如:
A
1 red car
2 blue whale
3 red carpet in the closet
4 star wars dvd extra especial thing
5 whatever with your however
Run Code Online (Sandbox Code Playgroud)
我想在B栏:
B
1 +red +car
2 +blue +whale
3 +red +carpet +in +the +closet
4 +star +wars +dvd +extra +especial +thing
5 +whatever +with +your +however
Run Code Online (Sandbox Code Playgroud)
我正在使用Google Spreadsheets,但Excel的解决方案可以正常工作!
如果实现这一目标的唯一方法是使用自定义公式,我更喜欢Google Spreadsheets公式.虽然,如果可能的话,我真的想知道原生配方.
我是JavaScript的新手,所以如果这个问题太愚蠢我很抱歉.有人告诉我,当你创建一个for
-loop时,你应该写:
for (var i = 0; i < 10; i++)
Run Code Online (Sandbox Code Playgroud)
但有时我忘记把var
前i
:
for (i = 0; i < 10; i++)
Run Code Online (Sandbox Code Playgroud)
它的工作方式相同.我需要创建变量i
吗?
两者之间的主要区别是什么
var i = 0
Run Code Online (Sandbox Code Playgroud)
和
i = 0
Run Code Online (Sandbox Code Playgroud)
在一个环for
?
我知道我可以使用
var doc = DocumentApp.getActiveDocument();
Run Code Online (Sandbox Code Playgroud)
在 GoogleDocs 上创建新文档,但如何在特定文件夹中创建它?
此外,如何编写代码来打开新创建的文档?我搜索了 https://developers.google.com/apps-script/reference/document/document-app#create(String),但我找不到答案。
非常感谢!
当我尝试编译此代码时,我收到一条错误消息:
i
无法解析为变量
我做错了什么?我该如何解决?
boolean[] onibusDoTrajeto(int trajeto1, int trajeto2){
boolean[] lugaresNoTrajeto = new boolean[49];
for(int j = 0; j < _assentos[0].length; j++) {
for (i = trajeto1; i <= trajeto2; i++){
if (_assentos[i][j] = true){
lugaresNoTrajeto[j] = true;
break;
}
}
}
}
Run Code Online (Sandbox Code Playgroud) 我有一个dataLayer
数组,里面有对象:
dataLayer[3]\nObject {event: "gerar-evento", event-category: "Chat", event-acion: "Vendas", event-label: "Pr\xc3\xa9 Fixo 15"}\n
Run Code Online (Sandbox Code Playgroud)\n当我尝试选择该对象的属性时,出现错误
\n如果我尝试:
\ndataLayer[3].event\n
Run Code Online (Sandbox Code Playgroud)\n它工作正常,返回gerar-evento
,但如果我尝试:
dataLayer[3].event-label\n
Run Code Online (Sandbox Code Playgroud)\n我收到此错误:ReferenceError: label is not defined
还有另一种方法可以从对象中选择属性吗?我究竟做错了什么?
\nI have a Google Form that I need to duplicate. I want to create a different form for every person on my team (30+ people).
I've looked into the documentation and I could not find a method that duplicates the form.
This is what I want to do:
var template_form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
var new_form = template_form.a_method_that_duplicates_the_form(); // Could not find this method
var new_form_id = new_form.getId();
... //and so on...
Run Code Online (Sandbox Code Playgroud)
Is there any way to duplicate forms using Google App …
我\xc2\xb4被分配了有史以来最无聊的任务。我需要在电子表格中写入标签的名称及其触发规则。由于我们有很多客户,所以有很多标签。
\n\n我想知道是否有一种方法可以自动化?
\n\n我只需要标签的名称及其触发规则。
\nfor-loop ×2
javascript ×2
variables ×2
excel ×1
google-docs ×1
google-forms ×1
java ×1
object ×1
spreadsheet ×1