I have created a Bluemix Service and can see it in my Bluemix dashboard, under Services.
When I go into my service, under the Manage tab, there is a button, "Open my-service-name Dashboard". When I click on it, I am taken to a page saying
This page contains the following errors:
error on line 1 at column 1: Document is empty Below is a rendering of
the page up to the first error.
It seems like I need to provide a documentation. But where do I put that in my source code directory?
The service metadata has a field documentationURL that can be used to point to the related documentation. This and other fields like the dashboard_client (for the service dashboard) are documented in the Cloud Foundry Catalog Metadata in the section on Services Metadata Fields.
To see a working example you can take a look at my Pseudo Broker/Service sample that I wrote for Bluemix. It has the bare minimum code and step-by-step instructions.
Related
Sitemap could not be read
General HTTP error
1 instance
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
Examples
HTTP Error:500enter image description here
Refer to the posts:
https://www.searchenginejournal.com/gsc-reports-sever-500-errors/375791/#close
https://support.google.com/webmasters/thread/66363365?hl=en
There can be errors in the code of the page or the structure. Google has set certain parameters based on which it decides to validate the submitted URLs and sitemaps.
It will be better if you can share the link of the problematic page so that one can try to catch what might be the issue.
For example:
https://paragpallavsingh.com/sitemap.xml, this is an autogenerated sitemap by WordPress. and submitted in Google search console without any issue.
At this website
https://cloud.google.com/life-sciences/docs/how-tos/getting-started#download_credentials_for_api_access
it says:
After creating your credentials, download the client_secret.json file by going to the Credentials page in the Cloud Console and clicking Download JSON file_download.
The credentials page is hyperlinked. But when you go to that page there is no such button named download json file. Here is a screenshot of the page:
I really wish Google would learn to write clear documentation.
I should also add that the website has the following cryptic instructions:
Use this key in your application by passing it with key=API_KEY parameter.
I don't know what it means to pass a key. If the writers would have provided an example that would certainly have helped. I have the key and that might solve my problem, I just don't know what to do with it.
This may be late, but this may help if anyone is still having this issue
After creating the service account
Select/click the from the account listing
Goto the keys tab
Click Add Key and select create key
Then select JSON and the file will be downloaded
refer here https://cloud.google.com/docs/authentication/getting-started?authuser=1#creating_a_service_account
You haven't made a OAuth credential.
Click Create credentials > Oauth Client ID.
Set the application type to Other and complete the form.
After creating your credentials, download the client_secret.json file by going to the Credentials page in the Cloud Console and clicking Download JSON file_download. Securely store the file in a location that only your application can access.
The write of the documentation linked to the wrong page. He should have linked to
https://console.cloud.google.com/apis/credentials/
But instead linked to
https://console.developers.google.com/apis/credentials
If you can download the json file with the first link then more instructions will be needed. The second link though allows you to download the json file.
After creating the keys and service account, you can download the Json file on the end right side of OAuth key IDs. Check the picture below for the location of the button.
I tried using this Google Analytics Embed API Demo, of course with my own ClientID (49803909):
Embed API Demo
However, instead of the graphic I should be getting, I only get a blank page. I did follow the instructions quite carefully. Does this work for others? Any ideas of what may be wrong?
PS: Here's the screenshot of where I am getting the id from. #DaImTo was right that just 49803909 wasn't it, but I also tried to full long string and even the service id below (the one with #), all to the same effect (a blank screen). So, is this the wrong screen then?
I think #DalmTo is correct. You're most likely using one of the many other Google Analytics IDs instead of using a valid Client ID (which is not Google Analytics-specific, it's a general ID used for accessing Google APIs), and you're probably getting errors logged to the JavaScript console that say something to that affect.
If you follow the steps in this Embed API Developer Guide, you'll see instructions on how to create a Client ID to use with the Embed API.
I am a newbie to Adobe DTM (Dynamic Tag Management) and have not done any kind of training related to it. However, I have been given a requirement to integrate DTM with AEM 6. I Have some requirements related to Omniture where certain events on the website are tracked and that information needs to be sent to DTM. I have followed steps described on this blog (http://blogs.adobe.com/aemtutorials/2013/07/24/customize-the-client-context/) to customize the client context by creating a new session store and storing some sample data inside it. Now, next part is to retrieve this data into DTM which I am completely unaware on how to do. What is need to achieve in particular is to create a new data element as shown in the screenshot below and write some custom java script to access the data stored inside the client context (which is present in the session store) as explained in the blog mentioned.
I have no idea on how to integrate DTM with AEM instance and how to get hold of that data needed using the script. There is no info available on the internet regarding this, hence request you to help me in case anybody have worked on such a requirement earlier. Any help is highly appreciated
Step 1 - Set up DTM cloud services configuration in AEM. You may find cloud services config at /etc/cloudservices/dynamictagmanagement.html
Step 2 - Apply the above cloud config to the root of your website using the page property. This will insert the required JS scripts and JS object into the DOM. You could also do step (1) & (2) together by manually inserting header and footer code (from DTM) into the template.
Step 3 - Supply data to DTM JS object. This you could populate the data from server side or at client side using JS. You could leverage client context as well. JS APIs available to query client context.
PS: Am also a learner on this.
Helpful links:
http://blogs.adobe.com/experiencedelivers/experience-management/integrating-dtm-custom-aem6-page-template/
http://docs.adobe.com/docs/en/aem/6-0/administer/integration/marketing-cloud/dtm.html
You can use data elements with custom script like this:
e.g. dataElement authorizableId is custom script with content
return CQ_Analytics.ClientContext.get("/profile/authorizableId");
or
dataElement pageTitle
return CQ_Analytics.PageDataMgr.getProperty("title”);
This is how I implemented it. Please note that this implementation is for integrating with flat HTML files. Where we need to add the scripts in Head tag.
Pre-requisites:
1. We need to have login credentials for DTM website.
We need to have admin rights.
We need sc3.omniture site credentials. This is usually provided by Adobe team.
From Omniture console we need to generate the AppMeasurement.js file.
From AppMeasurement.js file we need to get important details like:
a. Tracking Server Name
b. s_account name
c. Visitor namespace
Connecting HTML files to DTM:
Login to https://dtm.adobe.com with admin credentials.
Click on Project dashboard
Click on Embed tab on top navigation.
Enable Host on Akamai.
Expand Header Code widget and copy the code.
Paste that code in the tag of your HTML.
Go back to DTM again. Expand Footer Code widget and copy the code.
Paste that code to the tag of your HTML.
Configuring DTM for Direct Call Rules:
1. Go to Rules tab from top navigation.
2. Click on Direct Call Rules from left navigation now.
Click on create rule.
Give it a name in the Name section.
Expand Conditions widget.
Pay close attention to the Conditions textbox. Direct Call Rules are fired using the _satelitte.track() method, and the text you enter in the Conditions textbox will be the argument you pass in this method. We entered “change-offer-submit”, so to fire this Direct Call Rule, we will use _satelitte.track(“change-offer-submit”) as you will see in the code below.
Now use the Adobe Analytics section to set up a custom link.
Below is the code that sets up our form and its validation. Notice the way the DTM _satelitte.track() is used. Each of the arguments passed in the _satelitte.track() method matches the Condition textbox in separate DTM rules.
HTML
<div class="outer-btn">
<input class="input-btn analyticsEvent" type="button" value="Submit" data-eventName="change-offer-submit">
</div>
JavaScript
<script>
jQuery('.analyticsEvent').on('click',function() {
window.console.log('Logged Event: ' + jQuery(this).attr('data-eventName'));
_satellite.track(jQuery(this).attr('data-eventName'));
location.href='./landingPage.html';
});
</script>
This has been superseded by a tool added to DTM in the June 2016 release, ContextHub was added in 6.1 as beta, in 6.2 it reached feature parity with ClientContext. It saves a lot of time building data layers as a lot of it will be there already .
I want to use custom domain to access my bluemix application directly by registered own domain. So godaddy requires the name server of bluemix so how can i find it or can you know
the another way to access it directly by registered domain
Here is an alternate way by which you can route your app to your webpage :
1 : Below your app name you would see the "Routes" with your bluemix url. At the end you have the option to edit the routes. Click that.
2: A popup would appear with one option as "Manage Domains". Click that. Alternate you can also reach to that page by clicking "Manage organization".
3: On the landing page you have the option to add a new domain. Add your website name here.
4: Now again go to edit routes. And add new route. You would see your website's name appearing . Add a name to your app. suppose you gave "myapp" as the name and your webpage name is "mywebsite.com" then your app would be redirected to your subdomain named "myapp.mywebsite.com". On save you can see this new route appearing additional to your existing routes for your app.
This is the first part. Now go to your domain provider and add create new alis with the app name. "myapp.mywebsite.com" and pass the alis name as the actual route provided by bluemix to you. Once done your app would be visible at your website.
You could follow what suggested by #Manish but instead of creating an alias CNAME on your DNS configuration you could create an A record pointing one of the following IP
US-SOUTH: 75.126.81.68
EU-GB: 5.10.124.142
AU-SYD: 168.1.35.169
according to the region your application is running on.